Home  >  Article  >  What file is dsstore?

What file is dsstore?

藏色散人
藏色散人Original
2020-02-15 10:02:2045577browse

dsstore is a hidden file of custom attributes. dsstore, the full name of "Desktop Services Store", is a hidden file created by Apple's Mac OS

What file is dsstore?

The operating environment of this tutorial: macOS Big Sur system, MacBook Pro computer.

What file is dsstore?

dsstore is a hidden file of custom attributes.

.DS_Store (full name in English: Desktop Services Store) is a hidden file created by Apple's Mac OS It is the choice of background color. Equivalent to desktop.ini under Windows.

Delete .DS_Store

If there is no automatically generated .DS_Store file in your project, then just add .DS_Store directly to the .gitignore file. If the .DS_Store file already exists in your project, you need to delete it from the project first and then add it to .gitignore. As follows:

Delete all .DS_Store in the project. This will skip .DS_Store

1.find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
将 .DS_Store 加入到 .gitignore
2.echo .DS_Store >> ~/.gitignore

Update Project

3.git add --all
4.git commit -m '.DS_Store banished!'

If you only need to delete the .DS_Store on disk, you can use the following command to delete the current directory and its subdirectories All .DS_Store files under:

1、find . -name '*.DS_Store' -type f -delete

Disable or enable automatic generation

Disable .DS_store generation:

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

Restore .DS_store generation:Restore .DS_store generation:

defaults delete com.apple.desktopservices DSDontWriteNetworkStores

The above is the detailed content of What file is dsstore?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn