 |
 |
File & Folder Names: Which char's not to use (&, $, !)?
|
 |
|
 |
|
Mac Enthusiast
Join Date: Oct 2001
Location: Chicago, IL
Status:
Offline
|
|
Hey there,
Are there any characters which are still off-limits in File and Folder names, such as:
!, @, #, $, %, /, etc.
Thanks!
BD
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jul 2002
Status:
Offline
|
|
Still?!? Still?!?
The *only* character you shouldn't [can't] put in a folder/file name is ':', and always has been.
This causes all sorts of problems with remote drives with inferior filesystems mounted locally.
Stupidly, the above does not apply to GODDAMN PROJECT BUILDER PROJECTS. 
|
|
Commander ~Coxy of the 68kMLA
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Oct 2001
Location: Chicago, IL
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jan 2000
Status:
Offline
|
|
If you don't use a command line shell, then the only character you can't use is ':'. This isn't something you need to worry about; if you try to use that character, the Finder or save file dialog won't let you.
Even if you do use the command line, there really aren't any more restrictions. It's just harder to type name with special characters since they might be interpreted as meaning something else. Those pages are recommending you don't name a file something like "~file" since the shell will see this as "/Users/yournamefile", but you could still use the file by escaping the special char like in "vi \~file".
It's kind of funny that Apple went out of their way to preserve the ':' character as the only restricted character, since it's the old path seperator. The path seperator is really '/' and that's what can't be in file names. If you look at it in the Terminal, you can see that files with '/' in the name in the Finder really have the ':' in their names.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status:
Offline
|
|
I used a / in a folder name in Mail once and it totally screwed things up
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Jan 2001
Location: The Sar Chasm
Status:
Offline
|
|
a period at the beginning of a file name will make it invisible in the Finder. I didn't know this when i switched to X, and had been using a period in OS 9 to keep my ".files" folder sorted to the top. Imagine my chagrin when I booted X for the first time only to have my files all dissapear. I figured it our pretty quickly when I booted back into 9 and noticed all the invisible folders on my X partition.
CV
|
When a true genius appears in the world you may know him by this sign, that the dunces are all in confederacy against him. -- Jonathan Swift.
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Feb 2001
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Oct 2001
Location: Chicago, IL
Status:
Offline
|
|
Hey,
That's a great link. As simplistic as it is, I just really want to know if it's okay to leave Files and Folders like these - as is:
Jan & Dean
Three Dollar Bill Yall$
Rainy Day Women #12 & 35.mp3
Slam!.mp3
Who Can It Be Now?.mp3
Let There Be Eve...
Intro/Ramble On.mp3
Thanks,
BD
* P.S. Though yes, I see that ":" cannot be used at all thanks to the Finder.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jun 2001
Location: Utah
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator Emeritus 
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
Originally posted by BoulderDash:
Hey,
That's a great link. As simplistic as it is, I just really want to know if it's okay to leave Files and Folders like these - as is:
Jan & Dean
Three Dollar Bill Yall$
Rainy Day Women #12 & 35.mp3
Slam!.mp3
Who Can It Be Now?.mp3
Let There Be Eve...
Intro/Ramble On.mp3
Thanks,
BD
* P.S. Though yes, I see that ":" cannot be used at all thanks to the Finder.
If you use the Finder to name them, or they are already named that, there are no problems with it.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jul 2001
Location: Québec, Canada
Status:
Offline
|
|
Mac OS Classic always used : as the folder separator in path. Unix always used /. To accomodate Carbon applications that were ported from OS 9, Apple did this:
Carbon applications use : as the path separator and UNIX (and Cocoa) applications use /. This was to ensure some sort of compatibility. Now what happen if you have a / in you filename and you look at it from a UNIX application? Guess what! It will be shown as a :. Try file listing in terminal to see it. It symply swaps any / in filename for a :.
That does not mean that Cocoa UI does not compensate for this as it does in many places (thanks to the display name mechanism), but the real file path it is working with use / as a folder delimiter.
So you can't really use : and at some place / may be swapped for :. Take a note of it. Otherwise, there is no limitation to filename characters.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Oct 2001
Location: Chicago, IL
Status:
Offline
|
|
Thanks for the help guys... any chance that any of the Folder and File names mentioned above (with @, &, *, ., etc. characters) would cause anything to not be readable if transferred over to Windows 98 or Windows XP? Or if burned onto a CD?
BD
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status:
Offline
|
|
I found once that Windows couldn't read from a cd a folder with "quotes" in the name. Or maybe it was that it started with a ". I forget what version of Windows as well. Probably 98
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jun 2001
Location: Utah
Status:
Offline
|
|
Originally posted by BoulderDash:
Thanks for the help guys... any chance that any of the Folder and File names mentioned above (with @, &, *, ., etc. characters) would cause anything to not be readable if transferred over to Windows 98 or Windows XP? Or if burned onto a CD?
BD
Windows will not see files with an em dash in them.
edit: hrm. And apparently neither will macnn!
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Jun 2002
Location: Albuquerque, NM
Status:
Offline
|
|
Copying to a windows server will will choke on most of the characters. The SMB client doesn't like them at all. See this link.
The part that gets me is when you copy from the Mac drive to a Windows or Linux box over SMB there isn't one complaint about characters. If the Samba client on Linux can do it why not the Mac?
I found all this out the hard way trying to use a Linux box for a file server at home. I have 7 drives that I want to set up in RAID 5 but I ended up moving the drives to a G3 and mirroring 2 of them because the finder is too picky about different characters.
Brad
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|