File name characters
The following information lists the characters that should not or cannot be used for file, directory, or extended attribute names in IBM Spectrum Archive Single Drive Edition. Differences in portability when you assign names between Linux and platforms such as Windows are also discussed.
- U+0001 to U+001F (excluding U+0009 (TAB), U+000A (LF), and U+000D (CR), which were supported in previous releases, and continue to be supported without percent encoding).
- The : (colon).
The percent encoding method is also used when there are special characters along with multi-byte characters in the name. The percent encoded logic is applied to the entire string of special and multi-byte characters.
On Windows systems, files and directory names cannot be created with a colon (:). But if a file or directory name is created with a colon on a Linux or Mac operating system, then moved to a Windows system, percent encoding is used to include the colon in the name in the index.
%3Ain the index with percent encoding. The colon appears as an
_(underscore) in the file name on Windows Explorer, or in the command prompt.
- Surrogate blocks.
- BOM.
- NULL character (U+0000).
- Characters that cannot be converted to UTF-16, UTF-8 or NFC normalization.
* ? < > " | \
- Reserved device names
- The following device names are reserved by Windows and should not be used as file names:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9
Note: On Linux and OS X operating systems, reserved device names can be used as file names, which means that an LTFS-formatted medium that is used on Linux and OS X can have a Windows-reserved file name.File names that are created on Linux and OS X are translated when a user inserts a medium on Windows. For example, if the user creates a file (CON
) on Linux and OS X, and then inserts the medium on Windows, the user now views it asCON~1
.Note: If the user copiesCON~1
to another folder on Windows, the destination file is now namedCON~1
. The folder does not store the original name (CON
). If the user subsequently inserts the medium on Linux and OS X, the copied file displays asCON~1
. - File/directory name case sensitivity
- LTFS
Windows currently supports only a case-insensitive file and
directory naming convention. LTFS, however, stores the case. For example, when the user creates
AbC.txt
, the file is stored asAbC.txt
on the medium.LTFS Linux and OS X support a case-sensitive file system. An LTFS-formatted medium on Linux and OS X can have files/directories with only case-sensitive differences. For example,ABC.txt
andabc.txt
can both be on the same directory. However, if the user then inserts the medium on Windows, the file or directory names are translated. For example, ifABC.txt
andabc.txt
are created on Linux and the medium is inserted on Windows, the files are viewed asABC.txt
andabc~1.txt
, respectively.Note: If the user copiesabc~1.txt
to another folder on Windows, the destination file storesabc~1.txt
, not the original name (abc.txt
). The copied file displays asabc~1.txt
even if the user reinserts the medium on Linux and OS X.