Merge pull request #5 from gtristan/fix-link-parameters

Fix reversed parameters in link() and symlink() implementations.
This commit is contained in:
Stavros Korokithakis 2017-06-11 14:57:07 +03:00 committed by GitHub
commit 8d1ae6308a

View file

@ -82,13 +82,13 @@ class Passthrough(Operations):
return os.unlink(self._full_path(path))
def symlink(self, name, target):
return os.symlink(name, self._full_path(target))
return os.symlink(target, self._full_path(name))
def rename(self, old, new):
return os.rename(self._full_path(old), self._full_path(new))
def link(self, target, name):
return os.link(self._full_path(target), self._full_path(name))
return os.link(self._full_path(name), self._full_path(target))
def utimens(self, path, times=None):
return os.utime(self._full_path(path), times)