Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This. The file name is explicitly documented as not supported by the file system. The error message is buggy.

A correctly working system would have simply said what limitation the user had hit.

I’m sure that in every file system there are names you can’t give a file - and if there aren’t then that problem is at least as big. For example if it’s possible to call files null, the empty string, “.”, the directory separator etc then that just creates more trouble. These are documented limitations and a non-buggy system will explain what limitation the user has hit.

Inconsistency such as differences beteeen file system and file explorer I could agree are borderline bugs at least in the UX sense. The user doesn’t see the file explorer UI and the file system as different things.



AFAIK, Linux accepts any byte sequence. I never found one that couldn't be used.


0x2F and 0x00 are not allowed in Linux filenames.


Also, filenames composed solely of 0x2E bytes and with length zero, one, or two have a special meaning and can't actually be used to name files.


Try using a proper front slash in a file name.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: