Some interesting facts about slash and path name in Mac OS X:
- In Finder, you can create/rename a folder with slash in it's name.
- Internally, it stores slash as colon.
- So you can see slash is actually a colon in Terminal
- But, you cannot create a folder with colon in it's name in Finder
So, when it comes to script/programming, it's more tricky. I was scripting with
JavaScript/InDesign, the facts about this combination are:
- Read a path name with slash(which is slash in Finder, and colon in Terminal) in it, you get a string with colon
- To create a folder with slash and colon in it's path, Folder.create method will fail
- Folder.create method just does not allow colon in it's path.
- Finally I cannot figure out how to create a folder with slash(which is colon actually) in it's name.