This commit is contained in:
Kovid Goyal 2012-08-31 18:11:14 +05:30
parent 7a3d5937e7
commit 944fb4a7fe

View File

@ -229,6 +229,10 @@ def samefile(src, dst):
symlinks, case insensitivity, mapped drives, etc. symlinks, case insensitivity, mapped drives, etc.
Returns True iff both paths exist and point to the same file on disk. Returns True iff both paths exist and point to the same file on disk.
Note: On windows will return True if the two string are identical (upto
case) even if the file does not exist. This is because I have no way of
knowing how reliable the GetFileInformationByHandle method is.
''' '''
if iswindows: if iswindows:
return samefile_windows(src, dst) return samefile_windows(src, dst)