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-x    1 kahn     admin      193189 Oct 21 23:29
504-1_G3_14937f_H01.ab1/..namedfork/data*
-rwxr-xr-x    1 kahn     admin           0 Oct 21 23:29
504-1_G3_14937f_H01.ab1/..namedfork/rsrc*

Copy
-rw-r--r--    1 kahn     admin      193189 Nov 25 05:21
504-1_G3_14937f_H01.ab1/..namedfork/data
-rw-r--r--    1 kahn     admin           0 Nov 25 05:21
504-1_G3_14937f_H01.ab1/..namedfork/rsrc

But apparently it does copy the resource forks?


Here is a bad copy:

Original
-rwxr-xr-x    1 kahn     admin      192227 Oct 13 15:03
467-1_G7_2f_G04.ab1/..namedfork/data*
-rwxr-xr-x    1 kahn     admin           0 Oct 13 15:03
467-1_G7_2f_G04.ab1/..namedfork/rsrc*

Bad Copy
-rw-r--r--    1 kahn     admin         589 Nov 25 05:29
467-1_G7_2f_G04.ab1/..namedfork/data
-rw-r--r--    1 kahn     admin           0 Nov 25 05:29
467-1_G7_2f_G04.ab1/..namedfork/rsrc


-- 
Ari

> From: Doug McNutt <[EMAIL PROTECTED]>
> Date: Tue, 25 Nov 2003 07:55:03 -0700
> To: "perl.org" <[EMAIL PROTECTED]>
> Subject: Re: Cp and ditto do not always copy files the same size
> 
> 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 the same.
>> Original size 192 KB
>> Copied size 4 KB
> 
> 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 heritage made me put this line in my .tcshrc script.
> 
> alias files ls -lF \*/..namedfork/data \*/..namedfork/rsrc
> 
> It will show the resource forks in the current working directory
> 
> 
> -- 
> --> On the eighth day, about 6 kiloyears ago, the Lord realized that free will
> would make man ask what existed before the Creation. So He installed a few
> gigayears of history complete with a big bang and a fossilized record of
> evolution. <--

Reply via email to