Skip navigation.
 
mlNSFileManager buggy?!?
FROM : Ondra Cada
DATE : Mon Jan 14 23:54:18 2002

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_removed>              http://www.ocs.cz
2K Development: o.<email_removed>  http://www.2kdevelopment.cz
private        <email_removed>            http://www.ocs.cz/oc


Related mailsAuthorDate
mlNSFileManager buggy?!? Ondra Cada Jan 14, 23:54
mlRe: NSFileManager buggy?!? Chris Parker Jan 15, 00:29
mlRe: NSFileManager buggy?!? Charles Srstka Jan 15, 08:55
mlRe: NSFileManager buggy?!? Finlay Dobbie Jan 15, 19:45