• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Serious bug in NSFileManager fileExistsAtPath:?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Serious bug in NSFileManager fileExistsAtPath:?
      • From: Stéphane Sudre <email@hidden>
References: 
 >Re: Serious bug in NSFileManager fileExistsAtPath:? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: Serious bug in NSFileManager fileExistsAtPath:?
  • Next by Date: Re: Serious bug in NSFileManager fileExistsAtPath:?
  • Previous by thread: Re: Serious bug in NSFileManager fileExistsAtPath:?
  • Next by thread: Re: Serious bug in NSFileManager fileExistsAtPath:?
  • Index(es):
    • Date
    • Thread