Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > File & Folder Names: Which char's not to use (&, $, !)?

File & Folder Names: Which char's not to use (&, $, !)?
Thread Tools
Mac Enthusiast
Join Date: Oct 2001
Location: Chicago, IL
Status: Offline
Reply With Quote
Jun 12, 2003, 10:31 PM
 
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
Reply With Quote
Jun 12, 2003, 10:47 PM
 
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
Reply With Quote
Jun 12, 2003, 11:28 PM
 
Hey Commander,
I appreciate the Reply and all, but pages like these always give me pause:

http://www.esi.ac.at/info/computersystem/dos-unix.html

http://www.lehigh.edu/helpdesk/faq/qa/unixchar.html

http://cmgm.stanford.edu/classes/unix/filenames.html


So, does Apple have some sort of official guideline with OS X, or anything?

Thanks again,
BD
     
Junior Member
Join Date: Jan 2000
Status: Offline
Reply With Quote
Jun 13, 2003, 01:10 AM
 
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
Reply With Quote
Jun 13, 2003, 02:09 AM
 
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
Reply With Quote
Jun 13, 2003, 09:04 AM
 
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
Reply With Quote
Jun 13, 2003, 09:52 AM
 
BoulderDash,

Here's another link for your collection:

http://www.macobserver.com/tips/maco...20020531.shtml
     
Mac Enthusiast
Join Date: Oct 2001
Location: Chicago, IL
Status: Offline
Reply With Quote
Jun 13, 2003, 10:25 AM
 
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
Reply With Quote
Jun 13, 2003, 02:13 PM
 
yup
     
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Jun 13, 2003, 06:15 PM
 
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
Reply With Quote
Jun 13, 2003, 10:08 PM
 
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
Reply With Quote
Jun 15, 2003, 08:11 AM
 
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
Reply With Quote
Jun 15, 2003, 11:13 AM
 
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
Reply With Quote
Jun 15, 2003, 12:32 PM
 
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
Reply With Quote
Jun 15, 2003, 03:11 PM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:33 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2