Cp and ditto do not always copy files the same size

2003-11-25 Thread Ari Kahn
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

Re: Cp and ditto do not always copy files the same size

2003-11-25 Thread Doug McNutt
At 04:32 -0500 11/25/03, Ari Kahn wrote: I use the cp or ditto commands to accomplish the last part. `cp $filename $chromat_dir`; #copy encountered file to the chromatograph_dir `ditto $filename $chromat_dir/$file_prefix$file_suffix`; I find that sometimes the sizes of the copied files are not

Re: Cp and ditto do not always copy files the same size

2003-11-25 Thread Ari Kahn
It is true that I wasn't copying the resource fork specifically. But when I use the alias you gave me, it lists the sizes for the resource forks of the ORIGINALS as 0. Here is a good copy: Original -rwxr-xr-x1 kahn admin 193189 Oct 21 23:29 504-1_G3_14937f_H01.ab1/..namedfork/data*

Re: Cp and ditto do not always copy files the same size

2003-11-25 Thread Bruce Carter
CpMac and MvMac are supposedly the Macified versions, but I always use ditto with the -rsrc flag. On Nov 25, 2003, at 9:55 AM, Doug McNutt wrote: I don't think that cp is able to copy resource forks though there may be an Apple provided option. It sounds as though you are losing them. My MPW

Re: Cp and ditto do not always copy files the same size

2003-11-25 Thread Ari Kahn
When I do a search for the original file, I find ../../.AppleDouble/ sometimes. There are copies of the files I want to copy in ./AppleDouble that are 4 KB. What is an AppleDouble? -- Ari http://binf.gmu.edu/akahn/ From: Doug McNutt [EMAIL PROTECTED] Date: Tue, 25 Nov 2003 07:55:03 -0700

Re: Cp and ditto do not always copy files the same size

2003-11-25 Thread James Reynolds
I and many other lab admins are using ditto -rsrcFork to duplicate homefolders in our University labs and have no problem with the files that are duplicated. On the other hand, cp breaks anything that has split forks. I believe some lab admins are using CpMac also with no problems. In the

Re: Cp and ditto do not always copy files the same size

2003-11-25 Thread Doug McNutt
At 11:53 -0500 11/25/03, Ari Kahn wrote: When I do a search for the original file, I find .../../.AppleDouble/ What is an AppleDouble? AppleDouble and AppleSingle are file formats which incorporate the resource fork and the data fork and the finder information (type/creator and some other