• 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: Case sensitive fileName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Case sensitive fileName


  • Subject: Re: Case sensitive fileName
  • From: "gMail.com" <email@hidden>
  • Date: Wed, 17 Mar 2010 16:54:22 +0100
  • Thread-topic: Case sensitive fileName

Thanks, that's fine for 10.6, but I have to compile against 10.5...
I guess there should be a quick way with some C command, or Unix command or
even with the Carbon APIs, like PBGetCatInfo using the ioFRefNum...
Any idea?

Regards
--
Leonardo

> Da: Jeremy Pereira <email@hidden>
> Data: Wed, 17 Mar 2010 14:41:05 +0000
> A: "gMail.com" <email@hidden>, Apple Cocoa Develop Develop
> <email@hidden>
> Cc: Jeremy Pereira <email@hidden>
> Oggetto: Re: Case sensitive fileName
>
> NSURL* url = [NSURL fileURLWithPath: path];
> NSError* error = nil;
> NSArray* keysIWant = [NSArray arrayWithObject: NSURLNameKey];
> NSDictionary* resources = [url resourceValuesForKeys: keysIWant error:
> &error];
> if (resources != nil)
> {
> NSString* actualPath = [resources objectForKey: NSURLNameKey];
> NSLog(@"%@", actualPath);
> }

>> Hi, I have a file path
>>  /Folder/filename.txt
>> The API fileExistsAtPath says that it exists.
>> Now I need to get its real case sensitive file name, which is indeed e.g.
>> "FileName.txt"
>> How can I get it in a fast way? I thought by its inode, but I can't really
>> know how to do that.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Case sensitive fileName
      • From: Kevin Wojniak <email@hidden>
References: 
 >Re: Case sensitive fileName (From: Jeremy Pereira <email@hidden>)

  • Prev by Date: Re: Anyone using IKImageView?
  • Next by Date: Re: Anyone using IKImageView?
  • Previous by thread: Re: Case sensitive fileName
  • Next by thread: Re: Case sensitive fileName
  • Index(es):
    • Date
    • Thread