local: use path_info for link operations

This commit is contained in:
Mr. Outis
2019-09-04 19:38:16 -05:00
parent 2fe6fc1ba6
commit 079d589b59
+3 -3
View File
@@ -175,7 +175,7 @@ class RemoteLOCAL(RemoteBASE):
shutil.copyfile(from_info.fspath, to_info.fspath)
def symlink(self, from_info, to_info):
System.symlink(from_info.fspath, to_info.fspath)
System.symlink(from_info, to_info)
def hardlink(self, from_info, to_info):
# If there are a lot of empty files (which happens a lot in datasets),
@@ -201,10 +201,10 @@ class RemoteLOCAL(RemoteBASE):
)
return
System.hardlink(from_info.fspath, to_info.fspath)
System.hardlink(from_info, to_info)
def reflink(self, from_info, to_info):
System.reflink(from_info.fspath, to_info.fspath)
System.reflink(from_info, to_info)
def cache_exists(self, checksums, jobs=None, name=None):
return [