Home > Common Problem > What file is dsstore?

What file is dsstore?

藏色散人
Release: 2022-04-02 17:57:15
Original
45600 people have browsed it

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
Copy after login

Update Project

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

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
Copy after login

Disable or enable automatic generation

Disable .DS_store generation:

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Copy after login

Restore .DS_store generation:Restore .DS_store generation:

defaults delete com.apple.desktopservices DSDontWriteNetworkStores
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template