Eryk Sun <eryk...@gmail.com> added the comment:
> 'FocalMix: Semi-Supervised Learning for 3D Medical Image Detection.pdf' In a filesystem that supports file streams [1], such as NTFS or ReFS, the above name refers to a $DATA stream named " Semi-Supervised Learning for 3D Medical Image Detection.pdf" in a file name "FocalMix". Filesystems that do not support file streams may allow colon in filenames, regardless of its reserved status in the API. FAT filesystems (e.g. FAT32, exFAT) disallow colon in filenames. But the VirtualBox shared-folder filesystem (redirector) allows it. Even if colon is allowed by a particular filesystem, I strongly advise that you never use it in filenames, considering the problems with moving the file to an NTFS drive. You also need to be vigilant about using DOS device names (e.g. "con", "nul:", "com1.txt", etc) in filenames. Creating or opening them may succeed, but probably not in the way that you expect. For example, if you open r"C:\Temp\nul.txt" for writing, you're actually opening the r"\\.\NUL" device, and all of the data written is simply thrown away without error. --- [1] https://docs.microsoft.com/en-us/windows/win32/fileio/file-streams ---------- nosy: +eryksun _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42421> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com