Re: Serious bug in NSFileManager fileExistsAtPath:?
Re: Serious bug in NSFileManager fileExistsAtPath:?
- Subject: Re: Serious bug in NSFileManager fileExistsAtPath:?
- From: Jim Hamilton <email@hidden>
- Date: Sat, 21 May 2005 10:28:03 -0400
On May 21, 2005, at 10:20 AM, Stéphane Sudre wrote:
No Data Fork at all AFAIK.
It's a Icon\r file which was zipped and then unzipped. Icon\r files
are pure Resource Fork files.
Are you sure you have the file's name correct?
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@"Hello, World!");
NSString *path = [[NSString stringWithFormat:@"~/foo_folder/Icon%
c", '\r'] stringByExpandingTildeInPath];
BOOL exists = [[NSFileManager defaultManager]
fileExistsAtPath:path];
if (exists) NSLog(@"%@ exists", path);
else NSLog(@"%@ doesn't exist", path);
[pool release];
return 0;
}
[Session started at 2005-05-21 10:26:29 -0400.]
2005-05-21 10:26:29.889 foo[11136] Hello, World!
2005-05-21 10:26:29.892 foo[11136] /Users/jimh/foo_folder/Icon
exists
Jim H
--
Jim Hamilton
email@hidden
email@hidden
_______________________________________________
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