Merge pull request #5 from gtristan/fix-link-parameters
Fix reversed parameters in link() and symlink() implementations.
This commit is contained in:
commit
8d1ae6308a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue