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


Click here to return to the 'APPLE! Suggested Feature. Plus, Removal Tip' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
APPLE! Suggested Feature. Plus, Removal Tip
Authored by: bobbob on Jul 13, '05 04:02:17PM

What are you going to do if someone does 'ln -s / ._foo' and then you run this script?



[ Reply to This | # ]
Good point.
Authored by: Lectrick on Jul 13, '05 07:35:35PM

In the case of files, perhaps I will have to restrict the filetype to "file" as opposed to "directory", or perhaps there's an option (probably, but not at my computer currently) to not follow symlinks.

Good point, however. Obviously the ultimate ds_store removal one-liner is still in active development...

---
In /dev/null, no one can hear you scream



[ Reply to This | # ]
Good point.
Authored by: raider on Oct 13, '06 09:54:12AM
Obviously the ultimate ds_store removal one-liner is still in active development...
What is wrong with:

find . -name .DS_Store -print -delete


[ Reply to This | # ]
APPLE! Suggested Feature. Plus, Removal Tip
Authored by: Anonymous on Dec 05, '06 11:21:23AM
You're talking FUD. From man find:
 -P     Never follow symbolic links.  This  is  the  default  behaviour.
        When find examines or prints information a file, and the file is
        a symbolic link, the information used shall be  taken  from  the
        properties of the symbolic link itself.
This means that, with find, even without the -P option, will instruct rm to operate on the symlink, not its target.

[ Reply to This | # ]