Skip to content

resolve(strict=True) is not case-sensitive on Windows and Python 2.7 #84

Description

@simonDarmstadt

Good day ladies and gentlemen,

I have a problem with the pathlib2.Path().resolve(strict=True) and python-2.
This function is case-sensitive when running with python-3 but not when run with python-2.

In the example in the screenshot I would expect pathlib2.Path("C:/temp/garbage.txt").resolve(strict=True) to return C:/temp/gArbage.txt instead of C:/temp/garbage.txt.

See screenshot (old screenshot where I tested python-3 agains pathlib):
grafik

I tested on Windows 10 with python-2.7.17, pathlib2-2.3.3 and pathlib2-2.3.7.post1.

I doublechecked python-3.7.5 with pathlib2-2.3.7.post1. This will resolve correctly. So it is a python-2 specific problem.

grafik

Thanks in advance for looking into it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions