Can copyPath copy files larger than 1GB?
Can copyPath copy files larger than 1GB?
- Subject: Can copyPath copy files larger than 1GB?
- From: Lorenzo Puleo <email@hidden>
- Date: Tue, 09 Jul 2002 16:31:13 +0200
Hi,
I noted the API "copyPath" can't copy files larger than 1GB.
manager = [NSFileManager defaultManager];
ok = [manager copyPath:source toPath:dest handler:nil];
It produces a destination file large 8KB instead of 1,42GB.
It returns always YES, even if the source file is 1,42GB. and the
destination file is 8KB. In this case the console reports:
*** malloc[421]: error: Can't allocate region
Now I have just written a patch to this bug, and at the end of the copy,
even if "copyPath" returns YES, I check whether both the source and
destination files have the same size, but however this doesn't let my
program copy files larger than 1GB.
Please note that the Finder can copy that file properly, and the destination
disk has more than 5GB of free space.
Is it really a "copyPath" bug? Do I wrong something?
Please help me.
Thank you
--
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.