.DS_Store

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

In the Apple OS X 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.[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 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).[3] Remote file system, however, may be excluded by operating system settings. Although primarily used by 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, they contain the Spotlight comments of the folder's files. These comments are stored in the extended file attributes as well,[4] but Finder does not read those.

Prior Apple operating system Finder applications created files for the same purpose merely at the root of the volume being accessed, including on foreign file systems, collecting all settings for all files on the volume.

Problems

The complaints of many users prompted Apple to publish means to disable the creation of these files on remotely mounted network file systems.[5] However, these instructions do not apply to local drives, including USB flash drives. Before Mac OS X 10.5, .DS_Store files were visible on remote filesystems.[6]

.DS_Store files impose additional burden on revision control process: They are frequently changed and therefore appear in commits, unless specifically excluded.[7]

.DS_Store files are included in archives, such as ZIP, created by OS X users, along with other hidden files and directories.

.DS_Store files have been known to adversely affect copy operations.[8][9]

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. 2.0 2.1 Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.

External links