mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-13 07:18:25 +01:00
checkout: use os.path.samefile instead of stat
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -23,6 +23,13 @@ class System(object):
|
||||
|
||||
raise Exception('Not Implemented Yet')
|
||||
|
||||
@staticmethod
|
||||
def samefile(path1, path2):
|
||||
if System.is_unix():
|
||||
return os.path.samefile(path1, path2)
|
||||
|
||||
raise Exception('Not Implemented Yet')
|
||||
|
||||
@staticmethod
|
||||
def realpath(path):
|
||||
# It is definitely not the best way to check a symlink.
|
||||
|
||||
Reference in New Issue
Block a user