Why exception from os.path.exists()?
Chris Angelico
rosuav at gmail.com
Sun Jun 10 16:36:49 EDT 2018
On Mon, Jun 11, 2018 at 6:22 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> 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.
>
I'd like to find out about that. If it doesn't work, it'll be easily
provable that it can't be done.
ChrisA
More information about the Python-list
mailing list