Serious bug in NSFileManager fileExistsAtPath:?
Serious bug in NSFileManager fileExistsAtPath:?
- Subject: Serious bug in NSFileManager fileExistsAtPath:?
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 21 May 2005 06:50:02 -0700
Which result shall be returned by the NSFileManager fileExistsAtPath:
API when the file is 0 bytes?
From what I'm seeing, when a file is 0 bytes long (this is due to the
fact that it was a Resource fork archived in a zip archive and then
decompressed using OpenUp (or another one)), the result is NO.
This leads to the point where the API is saying NO when the file is
really here and displayed both by the Finder and the shell.
lstat is returning ENOENT ( /* No such file or directory */ )
This is happening from 10.2.8 to 10.4.1.
Any idea on why an Unix OS is blind when the file is 0 bytes long.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden