Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A follow-up...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A follow-up...
Authored by: robg on Jun 05, '03 09:38:04AM
From the original Anon poster comes this follow-up:
There was one problem with this hint: invisible files in a directory path with a space in it were not deleted. Here is a revised version that will properly handle directories with spaces in them (although it doesn't handle double-quotes in directory paths, but how often do people do that?)

In the terminal, navigate to the root of the directory to be burnt or imaged and type:
find . | grep 'DS_Store$' | awk '{printf("\"%s\"\n", %0)}' | xargs rm
Again, as before, do not open the directory in the Finder after doing this until you've created the disk image or burnt the disk, and don't run this command on your original directory if there is any Finder layout information that you want to keep.


[ Reply to This | # ]