NSFileManager buggy?!?
NSFileManager buggy?!?
- Subject: NSFileManager buggy?!?
- From: Ondra Cada <email@hidden>
- Date: Mon, 14 Jan 2002 23:54:18 +0100
Hallo,
my tool copies a number of files using the NSFileManager's
"copyPath:toPath:handler:". For diverse reason I call the method for each
file myself, so my "handler" is always nil.
Now, sometimes, quite randomly -- so far I haven't been able to catch any
regularity there -- the "copyPath:toPath:handler:" returns YES, but the
result file has zero size (checked both by "ls -l" and programmatically by
"...attributesAtPath:...fileSize").
Some of the files I copy are pretty big (movies, up to 90 MB), but that
should not be a problem -- anyway, on the target disk there still is almost
GB free. That seems to be irrelevant though: even if there is *not* place
enough, the method should return NO if the file was not copied successfully?
Is that a known bug, or has anybody some bright idea what the problem might
be? Might it be caused by the lamentable fact that HFS+ is used?
TIA,
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc