os.path.isfile
eryk sun
eryksun at gmail.com
Sat Feb 11 23:20:05 EST 2017
On Sun, Feb 12, 2017 at 3:52 AM, Steve D'Aprano
<steve+python at pearwood.info> wrote:
> In Python, you should always use forward slashes for paths, even on Windows.
There are cases where slash doesn't work (e.g. some command lines;
\\?\ prefixed paths; registry subkey paths), so it's simpler to follow
a rule to always convert paths to backslash on Windows, using
os.path.normpath or pathlib.Path.
More information about the Python-list
mailing list