Update:

The reason I was getting 4 KB files copied is that my procedure recursed
through ALL subdirectories, including .AppleDouble directories.  I did not
know of these and did not think to check.  When I did a search using the
find command for the original file, I found
../../.AppleDouble/
The fix was simply to not look in them.

>From Doug McNutt <[EMAIL PROTECTED]>
> AppleDouble and AppleSingle are file formats which incorporate the resource
> fork and the data fork and the finder information (type/creator and some other
> things) into a structure for storage on a medium that does not support the HFS
> specialties. They are commonly used for transport of Apple files over a
> network.



> From: Ari Kahn <[EMAIL PROTECTED]>
> Date: Tue, 25 Nov 2003 04:32:37 -0500
> To: "perl.org" <[EMAIL PROTECTED]>
> Subject: Cp and ditto do not always copy files the same size
> 
> I have a perl script that recurses through a given directory structure,
> identifies files, and then reorganizes the files by placing them in a new
> directory structure.
> 
> I use the cp or ditto commands to accomplish the last part.
> E.g.
> `cp $filename $chromat_dir`; #copy encountered file to the chromatograph_dir
> or   
> `ditto $filename $chromat_dir/$file_prefix$file_suffix`;
> 
> I find that sometimes the sizes of the copied files are not the same.
> E.g.
> Original size 192 KB
> Copied size 4 KB
> 
> There are a LOT of files I am dealing with. Maybe 3 GB.
> 
> Has anyone had a similar issue?
> Suggestions?
> 
> Thanks,
> -- 
> Ari
> http://binf.gmu.edu/akahn/
> 
> "We are the music makers. We are the dreamers of dreams."
> Gene Wilder as Willy Wonka, quoting O'Shaughnesy

Reply via email to