Open ThuF opened 2 years ago
This is a bit tricky as each OS has it's own quirk.
For Linux, the only forbidden character is /
(forward slash).
For macOS on "lower-levels" (terminal for example) the only forbidden character is /
(forward slash). On "upper levels" (Finder for example), the only forbidden character is :
(colon). So you can create a file in terminal with :
in it's name but not with /
, yet in Finder you can create a file whose name has /
in it's name but not :
. Also, the default file system in macOS is case insensitive, so if you have two files named "File.js" and "file.js", you will also get an error.
Windows pretty much forbids everything:
< (less than)
> (greater than)
: (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)
0-31 (ASCII control characters)
As an "additional bonus", under Windows, the following filenames are reserved (regardless of extension):
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9
As an "additional bonus №2", under Windows, filenames cannot end in a space or dot.
Cloning the following repository leads to issues in the
Repository
perspective:It seems that the issue is due to the following files/folders which contains
:
in the name:To prevent such issues we could either:
:
,#
, etc.) in the name.-
or