mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
7a3d5937e7
commit
944fb4a7fe
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user