Why exception from os.path.exists()?

Marko Rauhamaa marko at pacujo.net
Sun Jun 10 16:22:47 EDT 2018


Chris Angelico <rosuav at gmail.com>:
> Can you try creating "spam:ham" and "spam/ham"? If they're both legal,
> I'd like to see what their file names are represented as.

I think Bev already explained it. At Unix level, you can't have slashes
in filenames. At GUI level, you can't have colons in filenames. Unix
slashes are bijectively mapped to colons in the GUI.

So what you are asking can't really be tried out.


Marko



More information about the Python-list mailing list