Each OS tends to use its own file system:
Each file system has its own restrictions when it comes to naming files and paths.
Cross-platform filenames need to avoid:
- any other characters but
a-z
,0-9
,-._,=()
- starting with
-
- ending with a
.
- starting
or
ending
with
~
. - uppercase characters (Mac and Windows are case-insensitive).
- being more than 255 characters long.
- being one of
those names:
com1
,com2
,com3
,com4
,com5
,com6
,com7
,com8
,com9
,lpt1
,lpt2
,lpt3
,lpt4
,lpt5
,lpt6
,lpt7
,lpt8
,lpt9
,con
,nul
,prn
,aux
.
Cross-platform file paths need to avoid being more than 260 characters long.
Only use lowercase a-z
, 0-9
and -._,=()
in filenames.
Avoid paths longer than 260 characters.