Re: Rename files containing a slash
Re: Rename files containing a slash
- Subject: Re: Rename files containing a slash
- From: Rosyna <email@hidden>
- Date: Mon, 21 Oct 2002 15:41:46 -0700
Ack, at 10/21/02, Howard Oakley said:
The error is that you cannot and must not put a slash in a filename in OS X.
(Yes, I know that some things in the past have done so, but this has from
the Public Beta been a bad move.)
This is not true, I just did it. You cannot explicitly put a slash in
a file name using the cocoa or BSD or other path based APIs unless
you put a : instead
(like touch ~/Desktop/10:21:02 in the terminal, then look in the
finder after it eventually refreshes.)
This is because the slash is the BSD separator in paths. OS X is unable to
distinguish between a file called this/that and a file called that in the
folder this.
This is completely untrue. The developers of OS X have gone through
*great* lengths to make sure this isn't true. The *only* case where
this is true is the lame finder. I can't "Go to a folder" that
contains a / in the path name (like I have a folder named
Examples/SDK)
The same applies to OS X's other separator (from its Mac heritage), the
colon - it also causes confusion in paths.
Only for developers. Users and the OS itself have no problem with it it seems.
If you want to verify this, try editing a file name in the Finder (in Jaguar
or later - 10.0 and 10.1 did not object so strongly!) to contain these
characters.
Ok, done. Then again, I do use HFS+, the finder will still prevent a
: from being entered even on UFS, but it changes it to a -... err
uhm. It's supposed to. So never mind. Lame, totally lame.
One other character to avoid is a trailing hash # followed by anything that
could appear to be hexadecimal, e.g. this#dead - this is a bug affecting
10.2 and 10.2.1, though, and not intentional.
or My iPhoto Album #2
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps me
remember what we were talking about. Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.