3 ms·
By "several filesystems", you mean Windows? NTFS can handle it, but Windows can't (presumably due to using it for drive letters).
by LinAGKar 5y ago
By "several filesystems", you mean Windows? NTFS can handle it, but Windows can't (presumably due to using it for drive letters).
- rogerbinns 5y agoNTFS can't have colons in filenames because they are used to name alternate data streams. https://docs.microsoft.com/en-us/sysinternals/downloads/streams https://docs.microsoft.com/en-us/sysinternals/downloads/stre...
- boondaburrah 5y ago':' was the traditional directory separator on Macintosh systems before OSX, therefore it can't be used on HFS+ either. I remember there being some FS funk when OSX came out since it was very common for people to put dates in their filenames using slashes, and well, UNIX doesn't like that. I don't know what APFS does.
- fanf2 5y agoAs I understand it, : and / get swapped depending on whether you use unix APIs (/ is a directory separator, : is plain) or mac APIs (: is a directory separator and / is plain)
- pletnes 5y agoFrom what I recall (had a macbook years ago) I could put colons in filenames in the terminal, but not in finder.
- erik_seaberg 5y agoAlso HDFS. This bit me the first time I tried to write a Hadoop job that wrote every run to a new output dir.