This article needs additional citations for verification. (November 2016) (Learn how and when to remove this template message)
|Internet media type|
|Developed by||Apple Inc.|
In the Apple macOS operating system, .DS_Store is a file that stores custom attributes of its containing folder, such as the position of icons or the choice of a background image. The name is an abbreviation of Desktop Services Store, reflecting its purpose. It is created and maintained by the Finder application in every folder, and has functions similar to the file desktop.ini in Microsoft Windows. Starting with a full stop (period) character, it is hidden in Finder and many Unix utilities. Its internal structure is proprietary.
Purpose and location
The file .DS_Store is created in any directory (folder) accessed by the Finder application, even on remote file systems mounted from servers that share files (for example, via Server Message Block (SMB) protocol or the Apple Filing Protocol (AFP)). Remote file systems, however, could be excluded by operating system settings (such as permissions). Although primarily used by the Finder, these files were envisioned as a more general-purpose store of metadata about the display options of folders, such as icon positions and view settings. For example, on Mac OS X 10.4 "Tiger" and later, the ".DS_Store" files contain the Spotlight comments of the folder's files. These comments are also stored in the extended file attributes, but Finder does not read those.
In earlier Apple operating systems, Finder applications created similar files, but at the root of the volume being accessed, including on foreign file systems, collecting all settings for all files on the volume (instead of having separate files for each respective folder).
The complaints of many users prompted Apple to publish means to disable the creation of these files on remotely mounted network file systems. However, these instructions do not apply to local drives, including USB flash drives, although there are some workarounds. Before Mac OS X 10.5, .DS_Store files were visible on remote filesystems.
.DS_Store files have been known to adversely affect copy operations. If multiple files are selected for file transfer, the copy operation will retroactively cancel all progress upon reaching a .DS_Store file, forcing the user to restart the copy operation from the beginning.
- "Removing .DS_Store files on Macintosh OS X?". Adobe.com. Adobe Systems. February 24, 2003. Archived from the original on 2006-09-29. Retrieved 2006-09-29.
- Gourdol, Arno (October 1, 2006). "On the origins of .DS_Store". arno.org. Retrieved 2006-10-01.
- "File Extension .DS_STORE Information". 2007. Retrieved 2017-07-28.
- ".DS_Store". rixstep.com. May 21, 2003. Retrieved 2006-09-29.
- Siracusa, John (April 2004). "Mac OS X 10.4 Tiger". Ars Technica. Condé Nast. Archived from the original on 30 June 2013. Retrieved 2013-06-28.
- "Mac OS X v10.4 and later: How to prevent .DS_Store file creation over network connections". Support.Apple.Com. Apple Inc. May 24, 2005. Retrieved 2012-07-27.
- "Disable .DS_Store in OS X El Capitan". pixelcog. 27 Feb 2016.
- "Prevent creation of .DS_Store files in network shares". greci.cc. November 12, 2007. Retrieved 2008-11-12.
- Nielsen, Spencer (December 24, 2011). "Death to .DS_Store". AorenSoftware.com. Retrieved 2012-10-29.
- "How to compress folders on a mac without DS_Store files". The Website Dev. January 6, 2018. Archived from the original on August 27, 2018. Retrieved August 27, 2018.
- danixd (October 12, 2010). "Compressing folders on a mac, without the .DS_Store". Superuser. Stack Exchange. Retrieved August 27, 2018.
- Bernard, John (May 25, 2016). "Compress without .DS_Store and __MACOSX". Ask Different. Stack Exchange. Retrieved August 27, 2018.
- Brandt, Gary (September 8, 2012). "Why does DS_Store prevent copying?". discussions.apple.com. Retrieved 2014-08-21.
- Apple (2008-12-19). "BSD General Commands Manual".
- A reverse-engineered description of the file format
- A more detailed description of the file format
- Perl code to decode the .DS_Store format