ditto is really better than copyPath
ditto is really better than copyPath
- Subject: ditto is really better than copyPath
- From: Lorenzo Puleo <email@hidden>
- Date: Tue, 28 Jan 2003 20:52:28 +0100
Hi Michael,
thank you so much!
I have just tried the *ditto* code you wrote, and it worked very very well
also with files that *copyPath* didn't copy at all!
Thank you.
I noted that it also copys from source to destination:
Creation, Modification and Backup Date, Locked Finder Flag, Stationery
Finder Flag, Unix Permissions, and, if running as root, the owner and group
too. So it's a perfect copy. It only didn't copy the Finder Comment, but
this is not a problem.
Copying a filePackage, it copys all these attributes to all the files nested
within the filePackage. Excellent.
Copying file larger than the free space on the boot disk it worked without
using the virtual memory, so I was able to copy a 1.2GB file very well.
And at the end of the copy the machine was clean and ready to work again.
With copyPath the machine runs slow just for a minute after the copy to
clean the scratch files created as virtual memory...
Here the timing for copying a 1.2 GB file
copyPath 5:27
ditto 4:08
Finder 3:20
Not bad.
To copy the whole Photoshop 7 folder (293 MB, 2133 items):
copyPath + settings attributes 5:52
ditto: 6:57
Finder: 1:30
But, as you know, Finder doesn't copy dates, permissions,...
Anyway I suppose that Finder should be faster, even if it copied the
attributes. So I think, why Apple doesn't implement in copyPath an API like
ditto that works at the Finder speed?
I am going to check ditto copying to no-Mac fileSystems. I will let you
know.
Please let me know:
1) Since ditto traversed the symLinks, is there a way to make it doesn't
traverse the symLinks?
2) Where could I know more about ditto?
3) Is ditto available on all the MacOS X machines? (servers included).
Thanks you and Regards. Ditto is a very fine way to copy files.
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.