Wednesday, February 3, 2010

Invalid File Name Characters (Windows, Linux)

On Windows, NTFS the following characters are not permitted [Filename, Microsoft KB 177506]:
* : < > ? \ / " |
Useful to also avoid:
[ ] = + , . : ;
From File Naming Conventions in Linux:
File names in Linux can contain any characters other than (1) a forward slash ( / ), which is reserved for use as the name of the root directory (i.e., the directory that contains all other directories and files) and as a directory separator, and (2) the null character (which is used to terminate segments of text). Spaces are permitted, although they are best avoided because they can be incompatible with legacy software in some cases.