Jump to content

.DS Store: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Replaced dead link in references with archive link
It is really a good one
Tags: Visual edit Mobile edit Mobile web edit
 
(19 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{For|the [[DS Automobiles]] car dealer network|DS Store}}{{short description|Proprietary format hidden file}}
{{short description|Proprietary format hidden file}}
{{Use dmy dates|date=May 2024}}
{{For|the car dealer network|DS Automobiles#DS Store}}
{{DISPLAYTITLE:.DS_Store}}
{{DISPLAYTITLE:.DS_Store}}
{{Infobox file format
{{Infobox file format
Line 23: Line 25:
| standard = <!-- or: | standards = -->
| standard = <!-- or: | standards = -->
| free =
| free =
| url =
}}
}}
In the [[Apple Inc.|Apple]] [[macOS]] operating system, '''.DS_Store''' is a file that stores custom attributes of its containing [[directory (file systems)|folder]], such as folder view options, [[Icon (computing)|icon]] positions, and other visual information.<ref>{{cite web | url=http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16831 | title= Removing .DS_Store files on Macintosh OS X? |work=Adobe.com | publisher=[[Adobe Systems]] | date=February 24, 2003 | accessdate=2006-09-29| archiveurl= https://web.archive.org/web/20060929143255/http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16831| archivedate= 2006-09-29<!--Added by DASHBot-->}}</ref> The name is an abbreviation of ''Desktop Services Store'',<ref name="arnostore">{{cite web | url=http://arno.org/arnotify/2006/10/on-the-origins-of-ds_store/ | title= On the origins of .DS_Store | date=October 1, 2006 | first=Arno |last=Gourdol | work=arno.org | accessdate =2006-10-01}}</ref> reflecting its purpose. It is created and maintained by the [[Finder (software)|Finder]] application in every folder, and has functions similar to the file [[desktop.ini]] in [[Microsoft Windows]]. Starting with a period {{code|.}} character, it is [[Hidden file and hidden directory|hidden]] in Finder and many Unix utilities. Its internal structure is [[proprietary format|proprietary]],<ref>{{cite web | url=https://pc.net/extensions/file/ds_store | title=File Extension .DS_STORE Information | website = PC.net | accessdate=2017-07-28 | date=2007}}</ref> but has since been reverse-engineered.<ref>{{cite web | url=https://wiki.mozilla.org/DS_Store_File_Format | title=DS Store File Format | date=July 18, 2007 | accessdate=October 16, 2022 }}</ref> Starting at [[macOS 10.12]] 16A238m, Finder will not display {{code|.DS_Store}} files (even with {{code|com.apple.finder AppleShowAllFiles YES}} set).
In the [[macOS]] operating system, '''.DS_Store''' is a file that stores custom attributes of its containing [[directory (file systems)|folder]], such as folder view options, [[Icon (computing)|icon]] positions, and other visual information.<ref>{{cite web | url=http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16831 | title= Removing .DS_Store files on Macintosh OS X? | publisher=[[Adobe Systems]] | date=24 February 2003 | accessdate=2006-09-29| archiveurl= https://web.archive.org/web/20060929143255/http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16831| archivedate= 2006-09-29<!--Added by DASHBot-->}}</ref> The name is an abbreviation of ''Desktop Services Store'',<ref name="arnostore">{{cite web | url=http://arno.org/arnotify/2006/10/on-the-origins-of-ds_store/ | title= On the origins of .DS_Store | date=1 October 2006 | first=Arno |last=Gourdol | work=arno.org | accessdate =2006-10-01}}</ref> reflecting its purpose. It is created and maintained by the [[Finder (software)|Finder]] application in every folder, and has functions similar to the file [[desktop.ini]] in [[Microsoft Windows]]. Starting with a period {{code|.}} character, it is [[Hidden file and hidden directory|hidden]] in Finder and many Unix utilities. Its internal structure is [[proprietary format|proprietary]],<ref>{{cite web | url=https://pc.net/extensions/file/ds_store | title=File Extension .DS_STORE Information | website = PC.net | accessdate=2017-07-28 | date=2007}}</ref> but has been reverse-engineered.<ref>{{cite web | url=https://wiki.mozilla.org/DS_Store_File_Format | title=DS Store File Format | date=18 July 2007 | accessdate=16 October 2022 }}</ref> Starting at [[macOS 10.12]] 16A238m, Finder will not display {{code|.DS_Store}} files (even with {{code|com.apple.finder AppleShowAllFiles YES}} set).


==Purpose and location==
==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)).<ref>{{cite web | url=http://rixstep.com/1/20030521,00.shtml | title=.DS_Store | date=May 21, 2003 | work=rixstep.com | accessdate =2006-09-29}}</ref> 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.<ref name="arnostore"/> For example, on [[Mac OS X v10.4|Mac OS X 10.4 "Tiger"]] and later, the ".DS_Store" files contain the [[Spotlight (software)|Spotlight]] comments of the folder's files. These comments are also stored in the [[extended file attributes]],<ref>{{cite web |first=John |last=Siracusa |url=https://arstechnica.com/apple/2005/04/macosx-10-4/7/ |title=Mac OS X 10.4 Tiger |work=[[Ars Technica]] |publisher=[[Condé Nast]] |accessdate=2013-06-28 |archiveurl=https://web.archive.org/web/20130523043131/http://arstechnica.com/apple/2005/04/macosx-10-4/7/ |archivedate=23 May 2013 |url-status=live |date=April 2004 |df=mdy }}</ref> but Finder does not read those.<ref>{{Cite web|url=https://ambientideas.com/blog/index.php/2010/01/applescript-to-re-apply-finder-comments|title=Ambient Ideas Blog}}</ref>
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)).<ref>{{cite web | url=http://rixstep.com/1/20030521,00.shtml | title=.DS_Store | date=21 May 2003 | work=rixstep.com | accessdate =2006-09-29}}</ref> 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.<ref name="arnostore"/> For example, on [[Mac OS X v10.4|Mac OS X 10.4 "Tiger"]] and later, the ".DS_Store" files contain the [[Spotlight (software)|Spotlight]] comments of the folder's files. These comments are also stored in the [[extended file attributes]],<ref>{{cite web |first=John |last=Siracusa |url=https://arstechnica.com/apple/2005/04/macosx-10-4/7/ |title=Mac OS X 10.4 Tiger |work=[[Ars Technica]] |publisher=[[Condé Nast]] |accessdate=2013-06-28 |archiveurl=https://web.archive.org/web/20130523043131/http://arstechnica.com/apple/2005/04/macosx-10-4/7/ |archivedate=23 May 2013 |url-status=live |date=April 2004 |df=mdy }}</ref> but Finder does not read those.<ref>{{Cite web|url=https://ambientideas.com/blog/index.php/2010/01/applescript-to-re-apply-finder-comments|title=Ambient Ideas Blog}}</ref>


In earlier Apple operating systems, Finder applications created similar files, but at the root of the volume being accessed, including on foreign [[file system]]s, collecting all settings for all files on the volume (instead of having separate files for each respective folder).<ref>{{Cite web |title=Macintosh: Meaning of the Desktop DB & Desktop DF Files |url=https://support.apple.com/kb/TA46427?locale=en_US |access-date=2022-05-06 |website=support.apple.com}}</ref>
In earlier Apple operating systems, Finder applications created similar files, but at the root of the volume being accessed, including on foreign [[file system]]s, collecting all settings for all files on the volume (instead of having separate files for each respective folder).<ref>{{Cite web |title=Macintosh: Meaning of the Desktop DB & Desktop DF Files |url=https://support.apple.com/kb/TA46427?locale=en_US |access-date=2022-05-06 |website=support.apple.com}}</ref>


==Problems==
==Problems==
The complaints of many users prompted Apple to publish means to disable the creation of these files on remotely mounted network file systems.<ref>{{cite web |date=May 24, 2005 |title=Mac OS X v10.4 and later: How to prevent .DS_Store file creation over network connections |url=http://support.apple.com/kb/HT1629 |url-status=dead |archive-url=https://web.archive.org/web/20190714230437/https://support.apple.com/en-us/HT1629 |archive-date=July 14, 2019 |accessdate=2012-07-27 |work=Support.Apple.Com |publisher=Apple Inc}}</ref> Since macOS High Sierra (10.13), Apple delays the metadata gathering for .DS_Store for folders sorted alphanumerically to improve browsing speed.<ref>{{cite web |title=Adjust SMB browsing behavior in macOS High Sierra 10.13 and later |url=https://support.apple.com/en-us/HT208209 |accessdate=5 January 2020 |work=Apple Support |language=en}}</ref> However, these instructions do not apply to local drives, including [[USB flash drive]]s, although there are some workarounds.<ref>{{cite web | url=http://pixelcog.com/blog/2016/disable-ds_store-in-el-capitan/ | work=pixelcog | title=Disable .DS_Store in OS X El Capitan | date=27 Feb 2016}}</ref> Before [[Mac OS X 10.5]], .DS_Store files were visible on remote filesystems.<ref>{{cite web | url=http://www.greci.cc/?p=10 | work=greci.cc | title=Prevent creation of .DS_Store files in network shares | date=November 12, 2007 | accessdate=2008-11-12 | archive-url=https://web.archive.org/web/20150709083317/http://www.greci.cc/?p=10 | archive-date=July 9, 2015 }}</ref>
User complaints prompted Apple to publish means to disable the creation of these files on remotely mounted network file systems.<ref>{{cite web |date=24 May 2005 |title=Mac OS X v10.4 and later: How to prevent .DS_Store file creation over network connections |url=http://support.apple.com/kb/HT1629 |url-status=dead |archive-url=https://web.archive.org/web/20190714230437/https://support.apple.com/en-us/HT1629 |archive-date=14 July 2019 |accessdate=2012-07-27 |work=Support.Apple.Com |publisher=Apple Inc}}</ref> Since macOS High Sierra (10.13), Apple delays the metadata gathering for .DS_Store for folders sorted alphanumerically to improve browsing speed.<ref>{{cite web |title=Adjust SMB browsing behavior in macOS High Sierra 10.13 and later |url=https://support.apple.com/en-us/HT208209 |accessdate=5 January 2020 |work=Apple Support |language=en}}</ref> However, these instructions do not apply to local drives, including [[USB flash drive]]s, although there are some workarounds.<ref>{{cite web | url=http://pixelcog.com/blog/2016/disable-ds_store-in-el-capitan/ | work=pixelcog | title=Disable .DS_Store in OS X El Capitan | date=27 February 2016}}</ref> Before [[Mac OS X 10.5]], .DS_Store files were visible on remote filesystems.<ref>{{cite web | url=http://www.greci.cc/?p=10 | work=greci.cc | title=Prevent creation of .DS_Store files in network shares | date=12 November 2007 | accessdate=2008-11-12 | archive-url=https://web.archive.org/web/20150709083317/http://www.greci.cc/?p=10 | archive-date=9 July 2015 }}</ref>


.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.<ref>{{cite web | url=http://www.aorensoftware.com/blog/2011/12/24/death-to-ds_store/ | title=Death to .DS_Store | first=Spencer |last=Nielsen | work=AorenSoftware.com | date=December 24, 2011 | accessdate=2012-10-29}}</ref>
.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.<ref>{{cite web | url=http://www.aorensoftware.com/blog/2011/12/24/death-to-ds_store/ | title=Death to .DS_Store | first=Spencer |last=Nielsen | work=AorenSoftware.com | date=24 December 2011 | accessdate=2012-10-29}}</ref>


.DS_Store files are included in [[Archive file|archives]], such as [[ZIP (file format)|ZIP]], created by OS X users, along with other hidden files and directories like the [[AppleDouble]] {{code|._}}.<ref>{{Cite web|url=https://thewebsitedev.com/compress-folders-mac-ds_store-files/|title=How to compress folders on a mac without DS_Store files|date=January 6, 2018|website=The Website Dev|archive-url=https://web.archive.org/web/20180827124800/https://thewebsitedev.com/compress-folders-mac-ds_store-files/|archive-date=August 27, 2018|url-status=live|access-date=August 27, 2018}}</ref><ref>{{Cite web|url=https://superuser.com/questions/198569/compressing-folders-on-a-mac-without-the-ds-store|title=Compressing folders on a mac, without the .DS_Store|last=danixd|date=October 12, 2010|website=Superuser|publisher=[[Stack Exchange]]|access-date=August 27, 2018}}</ref><ref>{{Cite web|url=https://apple.stackexchange.com/questions/239578/compress-without-ds-store-and-macosx|title=Compress without .DS_Store and __MACOSX|last=Bernard|first=John|date=May 25, 2016|website=Ask Different|publisher=[[Stack Exchange]]|access-date=August 27, 2018}}</ref>
.DS_Store files are included in [[Archive file|archives]], such as [[ZIP (file format)|ZIP]], created by OS X users, along with other hidden files and directories like the [[AppleDouble]] {{code|._}}.<ref>{{Cite web|url=https://thewebsitedev.com/compress-folders-mac-ds_store-files/|title=How to compress folders on a mac without DS_Store files|date=6 January 2018|website=The Website Dev|archive-url=https://web.archive.org/web/20180827124800/https://thewebsitedev.com/compress-folders-mac-ds_store-files/|archive-date=27 August 2018|url-status=live|access-date=27 August 2018}}</ref><ref>{{Cite web|url=https://superuser.com/questions/198569/compressing-folders-on-a-mac-without-the-ds-store|title=Compressing folders on a mac, without the .DS_Store|last=danixd|date=12 October 2010|website=Superuser|publisher=[[Stack Exchange]]|access-date=27 August 2018}}</ref><ref>{{Cite web|url=https://apple.stackexchange.com/questions/239578/compress-without-ds-store-and-macosx|title=Compress without .DS_Store and __MACOSX|last=Bernard|first=John|date=25 May 2016|website=Ask Different|publisher=[[Stack Exchange]]|access-date=27 August 2018}}</ref>


.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.<ref>{{cite web | url=https://discussions.apple.com/thread/4277022 | title=Why does DS_Store prevent copying? | first=Gary |last=Brandt | work=discussions.apple.com | date=September 8, 2012 | accessdate=2014-08-21}}</ref><ref>{{cite web | url=https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/ditto.1.html | title=ditto(1) Mac OS X Manual Page | website=OS X Man Pages | publisher=Apple Developer | date=2008-12-19 | archive-url=https://web.archive.org/web/20170506152651/https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/ditto.1.html | archive-date=May 6, 2017 }}</ref>
.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.<ref>{{cite web | url=https://discussions.apple.com/thread/4277022 | title=Why does DS_Store prevent copying? | first=Gary |last=Brandt | work=discussions.apple.com | date=8 September 2012 | accessdate=2014-08-21}}</ref><ref>{{cite web | url=https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/ditto.1.html | title=ditto(1) Mac OS X Manual Page | website=OS X Man Pages | publisher=Apple Developer | date=2008-12-19 | archive-url=https://web.archive.org/web/20170506152651/https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/ditto.1.html | archive-date=6 May 2017 }}</ref>


Some [[Google Drive]] users on macOS reported that .DS_Store files were being flagged for copyright violations. Google stated that they had addressed an issue that "impacted a small number of Drive files" to try to prevent this issue from occurring.<ref>{{Cite web|title=Google Drive flags macOS '.DS_Store' files for copyright violation|url=https://www.bleepingcomputer.com/news/security/google-drive-flags-macos-ds-store-files-for-copyright-violation/|access-date=2022-02-22|website=BleepingComputer|language=en-us}}</ref>
Some [[Google Drive]] users on macOS reported that .DS_Store files were being flagged for copyright violations. Google stated that they had addressed an issue that "impacted a small number of Drive files" to try to prevent this issue from occurring.<ref>{{Cite web|title=Google Drive flags macOS '.DS_Store' files for copyright violation|url=https://www.bleepingcomputer.com/news/security/google-drive-flags-macos-ds-store-files-for-copyright-violation/|access-date=2022-02-22|website=BleepingComputer|language=en-us}}</ref>
Line 58: Line 59:
** [http://search.cpan.org/~wiml/Mac-Finder-DSStore/ Perl code to decode the .DS_Store format]
** [http://search.cpan.org/~wiml/Mac-Finder-DSStore/ Perl code to decode the .DS_Store format]
*[https://0day.work/parsing-the-ds_store-file-format/ A blog post walking through parsing the .DS_Store file format]
*[https://0day.work/parsing-the-ds_store-file-format/ A blog post walking through parsing the .DS_Store file format]
{{Use dmy dates|date=December 2013}}


[[Category:Computer file formats|DS Store]]
[[Category:Computer file formats|DS Store]]

Latest revision as of 10:53, 10 December 2024

Apple Desktop Services Store
Filename extension
.DS_Store
Internet media type
application/octet-stream
Magic number\0\0\0\1Bud1\0
Developed byApple Inc.

In the macOS operating system, .DS_Store is a file that stores custom attributes of its containing folder, such as folder view options, icon positions, and other visual information.[1] The name is an abbreviation of Desktop Services Store,[2] 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,[3] but has been reverse-engineered.[4] Starting at macOS 10.12 16A238m, Finder will not display .DS_Store files (even with com.apple.finder AppleShowAllFiles YES set).

Purpose and location

[edit]

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)).[5] 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.[2] 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,[6] but Finder does not read those.[7]

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).[8]

Problems

[edit]

User complaints prompted Apple to publish means to disable the creation of these files on remotely mounted network file systems.[9] Since macOS High Sierra (10.13), Apple delays the metadata gathering for .DS_Store for folders sorted alphanumerically to improve browsing speed.[10] However, these instructions do not apply to local drives, including USB flash drives, although there are some workarounds.[11] Before Mac OS X 10.5, .DS_Store files were visible on remote filesystems.[12]

.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.[13]

.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 ._.[14][15][16]

.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.[17][18]

Some Google Drive users on macOS reported that .DS_Store files were being flagged for copyright violations. Google stated that they had addressed an issue that "impacted a small number of Drive files" to try to prevent this issue from occurring.[19]

See also

[edit]

References

[edit]
  1. ^ "Removing .DS_Store files on Macintosh OS X?". Adobe Systems. 24 February 2003. Archived from the original on 29 September 2006. Retrieved 29 September 2006.
  2. ^ a b Gourdol, Arno (1 October 2006). "On the origins of .DS_Store". arno.org. Retrieved 1 October 2006.
  3. ^ "File Extension .DS_STORE Information". PC.net. 2007. Retrieved 28 July 2017.
  4. ^ "DS Store File Format". 18 July 2007. Retrieved 16 October 2022.
  5. ^ ".DS_Store". rixstep.com. 21 May 2003. Retrieved 29 September 2006.
  6. ^ Siracusa, John (April 2004). "Mac OS X 10.4 Tiger". Ars Technica. Condé Nast. Archived from the original on 23 May 2013. Retrieved 2013-06-28.
  7. ^ "Ambient Ideas Blog".
  8. ^ "Macintosh: Meaning of the Desktop DB & Desktop DF Files". support.apple.com. Retrieved 6 May 2022.
  9. ^ "Mac OS X v10.4 and later: How to prevent .DS_Store file creation over network connections". Support.Apple.Com. Apple Inc. 24 May 2005. Archived from the original on 14 July 2019. Retrieved 27 July 2012.
  10. ^ "Adjust SMB browsing behavior in macOS High Sierra 10.13 and later". Apple Support. Retrieved 5 January 2020.
  11. ^ "Disable .DS_Store in OS X El Capitan". pixelcog. 27 February 2016.
  12. ^ "Prevent creation of .DS_Store files in network shares". greci.cc. 12 November 2007. Archived from the original on 9 July 2015. Retrieved 12 November 2008.
  13. ^ Nielsen, Spencer (24 December 2011). "Death to .DS_Store". AorenSoftware.com. Retrieved 29 October 2012.
  14. ^ "How to compress folders on a mac without DS_Store files". The Website Dev. 6 January 2018. Archived from the original on 27 August 2018. Retrieved 27 August 2018.
  15. ^ danixd (12 October 2010). "Compressing folders on a mac, without the .DS_Store". Superuser. Stack Exchange. Retrieved 27 August 2018.
  16. ^ Bernard, John (25 May 2016). "Compress without .DS_Store and __MACOSX". Ask Different. Stack Exchange. Retrieved 27 August 2018.
  17. ^ Brandt, Gary (8 September 2012). "Why does DS_Store prevent copying?". discussions.apple.com. Retrieved 21 August 2014.
  18. ^ "ditto(1) Mac OS X Manual Page". OS X Man Pages. Apple Developer. 19 December 2008. Archived from the original on 6 May 2017.
  19. ^ "Google Drive flags macOS '.DS_Store' files for copyright violation". BleepingComputer. Retrieved 22 February 2022.
[edit]