[Pythonmac-SIG] Finder Crash, after moving files....

Bob Ippolito bob at redivi.com
Mon Jul 5 19:31:32 CEST 2004


On Jul 5, 2004, at 8:03 AM, has wrote:

> Bob Ippolito wrote:
>
>> Have you tried using shutil.move instead?  It's probably a whole heck
>> of a lot faster anyway (though there's a chance it might not preserve
>> resource forks).
>
> shutil.__doc__ says it doesn't. Consider using ditto instead.

If it's on the same volume, it will rename and that should preserve the 
resource fork.  In the copy case, it's probably MUCH MUCH less painful 
to just change the implementation to also copy resource forks than it 
is to spawn ditto and have it copy regardless of destination volume.  
Thousands and thousands of useless copies isn't a good thing to do if 
you don't need to, because it's really slow and it makes it a whole 
heck of a lot more likely that you will run out of disk space during 
the operation.

-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040705/0d280bb6/smime.bin


More information about the Pythonmac-SIG mailing list