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

Click here to return to the 'Clean .DS_Store, .Trash, and ._resources files prior to copy' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Clean .DS_Store, .Trash, and ._resources files prior to copy
Authored by: RawkBob on Mar 09, '10 02:17:15PM
I tend to use dot_claen too, but it doesn't remove ds_store files, only the resource forks! for ejecting disks i use the following.
dot_clean -m -keep=mostrecent "$@"

find "$@" -name ".DS_Store" -exec rm {} \;

rm -f "$@"/.VolumeIcon.icns
rm -Rf "$@"/.fseventsd
rm -Rf "$@"/.TemporaryItems
rm -Rf "$@"/.Spotlight-V100
rm -Rf "$@"/.Trashes

diskutil eject "$@">/dev/null
where $@ is the usb drive - I put it into an automator action. Download here if you want... you click the action then choose the usb drive.
--- - music news and reviews

[ Reply to This | # ]