Re: Renaming files?
Re: Renaming files?
- Subject: Re: Renaming files?
- From: Andrew Farmer <email@hidden>
- Date: Mon, 20 Dec 2004 15:04:10 -0800
On 20 Dec 2004, at 14:11, Jeremy Dronfield wrote:
On 20 Dec 2004, at 5:01 pm, Christoffer Lerno wrote:
I thought I had renaming files nailed down by using NSFileManager's
movePath:toPath:handler: but it has problems with spaces & non ascii
characters in filenames - the documentation unfortunately doesn't
reveal how this is circumvented.
In my experience, the only character -movePath:toPath:handler: can't
cope with is a "/". It's possible, using the Finder, to put a slash in
a filename, and NSFileManager interprets it as a path separator.
(There may even be a way round this, but I haven't looked. I know
Carbon can cope with it.)
Yup - there's some translation going on between Carbon and the
underlying file system.
Since Carbon uses ':' as a path separator and the UNIX semantics use
'/' for the same, the bridge (wherever it is) swaps the two at the
transition.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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