My problem is that if the user enters a filename with a “/” in it, it will be saved to another directory. Is there a way to prevent this, so I could have “/” in the filename?
For example, the file named “page 8/9.txt”should not be saved in the directory “page 8” as “9.txt.”
Edit:
The : worked fine for me! thanks Paul R
Mac OS X normally translates
/to:and vice versa transparently, so long as you do not bypass the usual APIs for file system navigation and file I/O.