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: TonyT on Mar 09, '10 01:13:14PM

Why is this even here as a hint? This script should not be used.

After copying the files to a USB, run dot_clean.
dot_clean has been around since 2006:

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/dot_clean.1.html

NAME
dot_clean -- Merge ._* files with corresponding native files.

SYNOPSIS
dot_clean [-fmnsv] [--keep=[mostrecent|dotbar|native]] [dir ...]

DESCRIPTION
For each dir, dot_clean recursively merges all ._* files with their cor-
responding native files according to the rules specified with the given
arguments. By default, if there is an attribute on the native file that
is also present in the ._ file, the most recent attribute will be used.

If no operands are given, a usage message is output. If more than one
directory is given, directories are merged in the order in which they are
specified.

Edited on Mar 09, '10 01:14:50PM by TonyT



[ Reply to This | # ]
Clean .DS_Store, .Trash, and ._resources files prior to copy
Authored by: joeyblades on Mar 09, '10 01:32:01PM

dot_clean only removes the ._* files, not the other .files that Mac OS leaves around.



[ Reply to This | # ]
Clean .DS_Store, .Trash, and ._resources files prior to copy
Authored by: TonyT on Mar 10, '10 01:32:01PM

ok, fair enough, but as others have commented, better to use dot_clean then rm .DS_Store, etc..



[ Reply to This | # ]