OP-4617 - fix - os.path.samefile not present on Python2

This commit is contained in:
Petr Kalis 2023-01-24 17:05:19 +01:00
parent ff80b73de8
commit a03ce5d6fe

View file

@ -189,6 +189,6 @@ class FileTransaction(object):
def _same_paths(self, src, dst):
# handles same paths but with C:/project vs c:/project
if os.path.exists(src) and os.path.exists(dst):
return os.path.samefile(src, dst)
return os.stat(src) == os.stat(dst)
return src == dst