Re: NSURL getResourceValue fails
Re: NSURL getResourceValue fails
- Subject: Re: NSURL getResourceValue fails
- From: Steve Gehrman <email@hidden>
- Date: Wed, 13 Oct 2010 14:28:06 -0700
That URL is what I get back from:
CFURLRef cfURL = CFURLCreateFromFSRef(kCFAllocatorDefault, &_ref);
and
NSFileManager contentsOfDirectoryAtURL
and the problem doesn't happen on a normal hard disk and most servers work fine, just this one ftp volume mounted.
-steve
On Oct 13, 2010, at 12:07 PM, Dominic Giampaolo wrote: URL: file://localhost/Volumes/ftp.ftpwt.com/matéo/
The problem is that you've got a pre-composed utf-8 filename instead of decomposed utf-8. When you build a string you need do it using the CFStringCreateWithFileSystemRepresentation() and/or make sure you've converted your CF/NSString to FileSystemRepresenation, _not_ regular old utf-8. --dominic
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden