eclipse / dirigible

Eclipse Dirigible™ Project
https://www.dirigible.io
Eclipse Public License 2.0
268 stars 86 forks source link

[IDE] Git - Clone - Handle of Special Symbols During #1886

Open ThuF opened 2 years ago

ThuF commented 2 years ago

Cloning the following repository leads to issues in the Repository perspective:

Screenshot 2022-06-21 at 11 41 49

It seems that the issue is due to the following files/folders which contains : in the name:

To prevent such issues we could either:

StanZGenchev commented 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.