On Macs, Disable creation of .DS_Store Filesr. These files contain the metadata for each folder, such as the size and orientation of icons, background images, and so on. This helps keep the settings you’ve made for a certain folder. For example, you could set the Desktop folder so that the icons are sorted by name and the Downloads folder so that files are shown as a list and sorted by date, with the most recent files shown first.
DS Store files are hidden by the system because only the Finder uses this metadata to show your folder settings correctly. However, anyone who has turned on the ability to see hidden files or works in server shares where other users can also access data will tell you that every folder an Apple user touches will have one of these special files. It was given DS Store files.
How to Disable creation of .DS_Store Files
- Open a Terminal by navigating to Applications -> Utilities -> Terminal. Copy and paste the command displayed below into your Terminal and hit enter.
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
- Now just sign out of your Mac and back in again (or restart your Mac). From now on when you connect to Windows drives you won’t leave a .DS_Store file behind :)
- That’s it!
If you’ve tried all of these solutions and you’re still having the same problem in your iPhone, you should go to their official Apple support website for more information.
FAQ
What creates a .DS_Store file?
(Desktop Store Services) A file that Finder makes in every folder on macOS to store the user’s preferences for how the folder should be viewed. This file is hidden on a Mac, but it can be seen on a computer that is not a Mac. For example, when Finder is used to copy a file from a Mac to a Windows machine, the.DS Store file is made on the Windows machine.
Do I need to keep .DS_Store files?
The Finder only uses DS Store files to keep track of how you want to see a certain folder. Most of the time, deleting them won’t change anything, or at worst, you’ll lose your custom Finder view settings (icon size, position, background color, etc.).
Can .DS_Store be deleted?
If you delete corrupted files, Mac Finder only makes new copies of them. DS Store files are used to store viewing options like where icons are placed, how big the Finder window is, and what the window backgrounds are. You will need to use Terminal to get rid of a broken.DS Store file.
What is .DS_Store in Drive?
The Finder app in macOS creates “.DS Store” files automatically to store custom attributes and metadata like icon information and the location of a background image. This information tells Finder how to set up the layout based on what the user wants.