411 REFERENCE · Wikipedia
.DS Store
Reference material by Wikipedia contributors. This retains its source identity and is not 411 news reporting.
Proprietary format hidden file
May 2024
the car dealer network DS Automobiles#DS Store
Apple Desktop Services Store .DS_Store application/octet-stream \0\0\0\1Bud1\0 Apple Inc.
.DS_Store is a file generated by macOS that stores custom attributes of its containing folder, such as folder view options, icon positions, and other visual information.http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16831 Removing .DS_Store files on Macintosh OS X? Adobe Systems 24 February 2003 2006-09-29 https://web.archive.org/web/20060929143255/http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16831 2006-09-29 The name is an abbreviation of Desktop Services Store,http://arno.org/arnotify/2006/10/on-the-origins-of-ds_store/ On the origins of .DS_Store 1 October 2006 Arno Gourdol arno.org 2006-10-01 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 period . character, it is hidden in Finder and many Unix utilities. Its internal structure is proprietary,https://pc.net/extensions/file/ds_store File Extension .DS_STORE Information PC.net 2017-07-28 2007 but has been reverse-engineered.https://wiki.mozilla.org/DS_Store_File_Format DS Store File Format 18 July 2007 16 October 2022 Starting with macOS 10.12 16A238m, Finder does not display .DS_Store files, even if enabled by defaults write com.apple.finder AppleShowAllFiles YES in Terminal to show hidden system files.
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)).http://rixstep.com/1/20030521,00.shtml .DS_Store 21 May 2003 rixstep.com 2006-09-29 19 July 2011 https://web.archive.org/web/20110719051956/http://rixstep.com/1/20030521,00.shtml dead 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,John Siracusa https://arstechnica.com/apple/2005/04/macosx-10-4/7/ Mac OS X 10.4 Tiger Ars Technica Condé Nast 2013-06-28 https://web.archive.org/web/20130523043131/http://arstechnica.com/apple/2005/04/macosx-10-4/7/ 23 May 2013 live April 2004 mdy but Finder does not read those.https://ambientideas.com/blog/index.php/2010/01/applescript-to-re-apply-finder-comments Ambient Ideas Blog
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).Macintosh: Meaning of the Desktop DB & Desktop DF Files https://support.apple.com/kb/TA46427?locale=en_US 2022-05-06 support.apple.com
Problems
User complaints prompted Apple to publish means to disable the creation of these files on remotely mounted network file systems.24 May 2005 Mac OS X v10.4 and later: How to prevent .DS_Store file creation over network connections http://support.apple.com/kb/HT1629 dead https://web.archive.org/web/20190714230437/https://support.apple.com/en-us/HT1629 14 July 2019 2012-07-27 Support.Apple.Com Apple Inc Since macOS High Sierra (10.13), Apple delays the metadata gathering for .DS_Store for folders sorted alphanumerically to improve browsing speed.Adjust SMB browsing behavior in macOS High Sierra 10.13 and later https://support.apple.com/en-us/HT208209 5 January 2020 Apple Support en However, these instructions do not apply to local drives, including USB flash drives, although there are some workarounds.http://pixelcog.com/blog/2016/disable-ds_store-in-el-capitan/ pixelcog Disable .DS_Store in OS X El Capitan 27 February 2016 Before Mac OS X 10.5, .DS_Store files were visible on remote filesystems.http://www.greci.cc/?p=10 greci.cc Prevent creation of .DS_Store files in network shares 12 November 2007 2008-11-12 https://web.archive.org/web/20150709083317/http://www.greci.cc/?p=10 9 July 2015
.DS_Store files may impose additional burdens on a revision control process, since they are frequently changed and can therefore appear in commits, unless specifically excluded.http://www.aorensoftware.com/blog/2011/12/24/death-to-ds_store/ Death to .DS_Store Spencer Nielsen AorenSoftware.com 24 December 2011 2012-10-29
.DS_Store files are included in archives, such as ZIP, created by OS X users, along with other hidden files and directories like the AppleDouble ._.https://thewebsitedev.com/compress-folders-mac-ds_store-files/ How to compress folders on a mac without DS_Store files 6 January 2018 The Website Dev https://web.archive.org/web/20180827124800/https://thewebsitedev.com/compress-folders-mac-ds_store-files/ 27 August 2018 live 27 August 2018 Seventhqueen https://superuser.com/questions/198569/compressing-folders-on-a-mac-without-the-ds-store Compressing folders on a mac, without the .DS_Store danixd 12 October 2010 Superuser Stack Exchange 27 August 2018https://apple.stackexchange.com/questions/239578/compress-without-ds-store-and-macosx Compress without .DS_Store and __MACOSX Bernard John 25 May 2016 Ask Different Stack Exchange 27 August 2018
.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 (duplicate) .DS_Store file, forcing the user to restart the copy operation from the beginning.https://discussions.apple.com/thread/4277022 Why does DS_Store prevent copying? Gary Brandt discussions.apple.com 8 September 2012 2014-08-21https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/ditto.1.html ditto(1) Mac OS X Manual Page OS X Man Pages Apple Developer 2008-12-19 https://web.archive.org/web/20170506152651/https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/ditto.1.html 6 May 2017
Some Google Drive users on macOS reported that .DS_Store files were being flagged for copyright strikes. Google stated that they had addressed an issue that "impacted a small number of Drive files" to try to prevent this issue from occurring.Google Drive flags macOS '.DS_Store' files for copyright violation https://www.bleepingcomputer.com/news/security/google-drive-flags-macos-ds-store-files-for-copyright-violation/ 2022-02-22 BleepingComputer en-us
See also
Windows thumbnail cache
Desktop.ini
AppleSingle and AppleDouble formats
References
External links
Binary format specification from Kaitai
A reverse-engineered description of the file format from Mozilla (Mark Mentovai)
A more detailed description of the file format (Perl documentation by Mark Mentovai and Wim Lewis)
Perl code to decode the .DS_Store format
A blog post walking through parsing the .DS_Store file format
DS Store
Category:MacOS
Category:Articles with underscores in the title