[Pythonmac-SIG] hi list

Bob Ippolito bob at redivi.com
Mon Apr 12 12:20:59 EDT 2004


On Apr 12, 2004, at 11:27 AM, Aldo Bergamini wrote:

> Do I have to use the copying function in shutil or the one in 
> macostools?
> Do the stat functions report a res-fork comprehensive size or the size 
> of
> the data fork (this is important to know that I have copied all bits 
> and
> pieces of a rescued file, specially when I restart rescueing data after
> the iBook freezed).

shutil uses the POSIX layer only and WILL NOT preserve resource forks.  
The only way to access resource forks from the POSIX layer is 
explicitly:
	resfork = file(filename + '../namedfork/rsrc')

macostools uses Carbon and WILL preserve resource forks.

-bob




More information about the Pythonmac-SIG mailing list