.DS_Store bestanden recursief verwijderen

.DS_Store bestanden worden door het Mac OS X besturingssysteem automatisch aangemaakt voor elke Map die geopend wordt in de Finder.

In dit bestand wordt de metadata van de Map opgeslagen.

Om te voorkomen dat deze files op netwerk locaties worden aangemaakt :

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Om alle .DS_Store bestanden recursief te verwijderen uit een Map :

find /Applications/MAMP/htdocs/localhost/davidvandertuijn -name *.DS_Store -type f -exec rm {} \;
Parameter Omschrijving
-name pattern

True if the last component of the pathname being examined matches pattern.

Special shell pattern matching characters (``['', ``]'', ``*'', and ``?'') may be used as part of pattern.

These characters may be matched explicitly by escaping them with a backslash (``\'').

-type t

True if the file is of the specified type. Possible file types are as follows:

b block special
c character special
d directory
f regular file
l symbolic link
p FIFO
s socket

Meer informatie : .DS_Store - Wikipedia, the free encyclopedia