File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -792,23 +792,23 @@ def case_sensitive(path):
792
792
except Windows.
793
793
"""
794
794
# A fallback in case the path does not exist.
795
- if not os .path .exists (path ):
795
+ if not os .path .exists (syspath ( path ) ):
796
796
# By default, the case sensitivity depends on the platform.
797
797
return platform .system () != 'Windows'
798
798
799
799
# If an upper-case version of the path exists but a lower-case
800
800
# version does not, then the filesystem must be case-sensitive.
801
801
# (Otherwise, we have more work to do.)
802
- if not (os .path .exists (path .lower ()) and
803
- os .path .exists (path .upper ())):
802
+ if not (os .path .exists (syspath ( path .lower () )) and
803
+ os .path .exists (syspath ( path .upper () ))):
804
804
return True
805
805
806
806
# Both versions of the path exist on the file system. Check whether
807
807
# they refer to different files by their inodes. Alas,
808
808
# `os.path.samefile` is only available on Unix systems on Python 2.
809
809
if platform .system () != 'Windows' :
810
- return not os .path .samefile (path .lower (),
811
- path .upper ())
810
+ return not os .path .samefile (syspath ( path .lower () ),
811
+ syspath ( path .upper () ))
812
812
813
813
# On Windows, we check whether the canonical, long filenames for the
814
814
# files are the same.
You can’t perform that action at this time.
0 commit comments