.DS Store

Last updated

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).

Contents

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

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

Related Research Articles

Hierarchical File System (HFS) is a proprietary file system developed by Apple Inc. for use in computer systems running Mac OS. Originally designed for use on floppy and hard disks, it can also be found on read-only media such as CD-ROMs. HFS is also referred to as Mac OS Standard, while its successor, HFS Plus, is also called Mac OS Extended.

A resource fork is a fork of a file on Apple's classic Mac OS operating system that is used to store structured data. It is one of the two forks of a file, along with the data fork, which stores data that the operating system treats as unstructured. Resource fork capability has been carried over to the modern macOS for compatibility.

<span class="mw-page-title-main">Finder (software)</span> Macintosh file manager and GUI shell

The Finder is the default file manager and graphical user interface shell used on all Macintosh operating systems. Described in its "About" window as "The Macintosh Desktop Experience", it is responsible for the launching of other applications, and for the overall user management of files, disks, and network volumes. It was introduced with the Macintosh 128K—the first Macintosh computer—and also exists as part of GS/OS on the Apple IIGS. It was rewritten completely with the release of Mac OS X in 2001.

<span class="mw-page-title-main">Mac OS X Jaguar</span> Third major release of Mac OS X

Mac OS X Jaguar is the third major release of macOS, Apple's desktop and server operating system. It superseded Mac OS X 10.1 and preceded Mac OS X Panther. The operating system was released on August 23, 2002. It was available both for single-computer installations and in a "family pack" that allowed five installations on separate computers in one household. Jaguar was the first Mac OS X release to publicly use its code name in marketing and advertisements.

<span class="mw-page-title-main">Mac OS 8</span> Eighth major release of the classic Mac OS (1997)

Mac OS 8 is the eighth major release of the classic Mac OS operating system for Macintosh computers, released by Apple Computer on July 26, 1997. It includes the largest overhaul of the classic Mac OS experience since the release of System 7, approximately six years before. It places a greater emphasis on color than prior versions. Released over a series of updates, Mac OS 8 represents an incremental integration of many of the technologies which had been developed from 1988 to 1996 for Apple's overly ambitious OS named Copland. Mac OS 8 helped modernize the Mac OS while Apple developed its next-generation operating system, Mac OS X.

<span class="mw-page-title-main">Spotlight (Apple)</span> macOS search feature

Spotlight is a system-wide desktop search feature of Apple's macOS, iOS, iPadOS, and visionOS operating systems. Spotlight is a selection-based search system, which creates an index of all items and files on the system. It is designed to allow the user to quickly locate a wide variety of items on the computer, including documents, pictures, music, applications, and System Settings. In addition, specific words in documents and in web pages in a web browser's history or bookmarks can be searched. It also allows the user to narrow down searches with creation dates, modification dates, sizes, types and other attributes. Spotlight also offers quick access to definitions from the built-in New Oxford American Dictionary and to calculator functionality. There are also command-line tools to perform functions such as Spotlight searches.

Macintosh File System (MFS) is a volume format created by Apple Computer for storing files on 400K floppy disks. MFS was introduced with the original Apple Macintosh computer in January 1984.

HFS Plus or HFS+ is a journaling file system developed by Apple Inc. It replaced the Hierarchical File System (HFS) as the primary file system of Apple computers with the 1998 release of Mac OS 8.1. HFS+ continued as the primary Mac OS X file system until it was itself replaced with the Apple File System (APFS), released with macOS High Sierra in 2017. HFS+ is also one of the formats supported by the iPod digital music player.

<span class="mw-page-title-main">Desktop search</span>

Desktop search tools search within a user's own computer files as opposed to searching the Internet. These tools are designed to find information on the user's PC, including web browser history, e-mail archives, text documents, sound files, images, and video. A variety of desktop search programs are now available; see this list for examples. Most desktop search programs are standalone applications. Desktop search products are software alternatives to the search software included in the operating system, helping users sift through desktop files, emails, attachments, and more.

<span class="mw-page-title-main">At Ease</span> Computer software

At Ease was an alternative to the Macintosh desktop developed by Apple Computer in the early 1990s for the classic Mac OS. It provided a simple environment for new Macintosh users and young children to help them to work without supervision. At Ease replaces the Finder desktop, providing a simple tabbed panel-oriented graphical user interface in which applications and documents are represented by icons on large buttons. Aside from its security features, its interface and basic functionality is very similar to the Packard Bell Navigator.

The following tables compare general and technical information for a number of notable file managers.

In computing, a file shortcut is a handle in a user interface that allows the user to find a file or resource located in a different directory or folder from the place where the shortcut is located. Similarly, an Internet shortcut allows the user to open a page, file or resource located at a remote Internet location or Web site.

The System folder is the directory in the classic Mac OS that holds various files required for the system to operate, such as fonts, system extensions, control panels, and preferences.

AppleSingle Format and AppleDouble Format are file formats developed by Apple Computer to store Mac OS "dual-forked" files on the Unix filesystem being used in A/UX, the Macintosh platform's first Unix-like operating system. AppleSingle combined both file forks and the related Finder meta-file information into a single file, whereas AppleDouble stored them as two separate files. Support for the formats was later added to Unix software such as NFS and MAE, but they saw little use outside this small market.

<span class="mw-page-title-main">Time Machine (macOS)</span> Backup software application developed by Apple and distributed as part of macOS

Time Machine is the backup mechanism of macOS, the desktop operating system developed by Apple. The software is designed to work with both local storage devices and network-attached disks, and is commonly used with external disk drives connected using either USB or Thunderbolt. It was first introduced in Mac OS X 10.5 Leopard, which was released in October 2007 and incrementally refined in subsequent releases of macOS. Time Machine was revamped in macOS 11 Big Sur to support APFS, thereby enabling "faster, more compact, and more reliable backups" than were possible previously.

<span class="mw-page-title-main">Trash (computing)</span> Temporary storage for deleted files

In computing, the trash, also known by other names such as trash bin, dustbin, wastebasket, and similar names, is a graphical user interface desktop metaphor for temporary storage for files set aside by the user for deletion, but which are not yet permanently erased. This lifts the burden from the user of having to be highly careful while selecting files for deletion, since a trash bin provides a grace period to reverse unwanted deletions. The concept and name is part of Mac operating systems; a similar implementation is called the Recycle Bin in Microsoft Windows, and other operating systems use other names, sometimes ending with "-bin".

<span class="mw-page-title-main">System 1</span> First major release of classic Apple Macintosh operating system (1984)

The Macintosh "System 1" is the first major release of the classic Mac OS operating system. It was developed for the Motorola 68000 microprocessor. System 1 was released on January 24, 1984, along with the Macintosh 128K, the first in the Macintosh family of personal computers. It received one update, "System 1.1" on December 29, 1984, before being succeeded by System 2.

<span class="mw-page-title-main">Apple Disk Image</span> File format developed by Apple and used by macOS

AppleDisk Image is a disk image format commonly used by the macOS operating system. When opened, an Apple Disk Image is mounted as a volume within the Finder.

<span class="mw-page-title-main">Classic Mac OS</span> Original operating system of Apple Mac (1984–2001)

Mac OS is the series of operating systems developed for the Macintosh family of personal computers by Apple Computer, Inc. from 1984 to 2001, starting with System 1 and ending with Mac OS 9. The Macintosh operating system is credited with having popularized the graphical user interface concept. It was included with every Macintosh that was sold during the era in which it was developed, and many updates to the system software were done in conjunction with the introduction of new Macintosh systems.

References

  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. 1 2 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.