> On 11 Jun 2018, at 01:03, Chris Angelico <ros...@gmail.com> wrote: > > On Mon, Jun 11, 2018 at 9:52 AM, Steven D'Aprano > <steve+comp.lang.pyt...@pearwood.info> wrote: >> On Mon, 11 Jun 2018 06:10:26 +1000, Chris Angelico wrote: >> >>> 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. >> >> The Finder could very easily be substituting another character, like >> Konqueror (the KDE 3 file manager) does. In Konqueror, you can create a >> file named "spam/ham" and it quietly substitutes "spam%2fham" instead. >> But Konqueror's GUI treats it completely transparently: it is displayed >> as a slash, and if you copy the file name from the GUI you get a slash. > > Speculation is all very well, but I was wanting to see what actually > happened. :) As interesting as it is to see the way applications transform user input into filenames its does not affect the API that python presents. Barry -- https://mail.python.org/mailman/listinfo/python-list
- Re: Why exception from os.path.exist... Gregory Ewing
- Re: Why exception from os.path.exist... Antoon Pardon
- Re: Why exception from os.path.exist... Marko Rauhamaa
- Re: Why exception from os.path.exist... Antoon Pardon
- Re: Why exception from os.path.exist... Steven D'Aprano
- Re: Why exception from os.path.exist... Antoon Pardon
- Re: Why exception from os.path.exist... Barry Scott
- Re: Why exception from os.path.exist... Marko Rauhamaa
- Re: Why exception from os.path.exist... Steven D'Aprano
- Re: Why exception from os.path.exist... Chris Angelico
- Re: Why exception from os.path.exist... Barry Scott
- Re: Why exception from os.path.exist... Gregory Ewing
- Re: Why exception from os.path.exist... Bev in TX
- Re: Why exception from os.path.exist... Peter J. Holzer
- Re: Why exception from os.path.exist... Peter J. Holzer
- Re: Why exception from os.path.exist... eryk sun
- Re: Why exception from os.path.exist... Steven D'Aprano
- Re: Why exception from os.path.exist... Marko Rauhamaa
- Re: Why exception from os.path.exists()? Rick Johnson
- Re: Why exception from os.path.exists()? Gregory Ewing
- Re: Why exception from os.path.exists()? Steven D'Aprano