Skip to content

Commit

Permalink
Use extended_path in Path2(), see: #18
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Feb 5, 2016
1 parent ca082d5 commit 2eebafe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PyHardLinkBackup/phlb/pathlib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ def path(self):
return str(self)

def makedirs(self, *args, **kwargs):
os.makedirs(self.path, *args, **kwargs)
os.makedirs(self.extended_path, *args, **kwargs)

def link(self, other):
os.link(self.path, other.path)
os.link(self.extended_path, other.extended_path)

def utime(self, *args, **kwargs):
os.utime(self.path, *args, **kwargs)
os.utime(self.extended_path, *args, **kwargs)

def copyfile(self, other, *args, **kwargs):
shutil.copyfile(self.path, other.path, *args, **kwargs)
shutil.copyfile(self.extended_path, other.extended_path, *args, **kwargs)

def expanduser(self):
return Path2(os.path.expanduser(self.path))
return Path2(os.path.expanduser(self.extended_path))


class WindowsPath2(SharedPathMethods, pathlib.WindowsPath):
Expand Down

0 comments on commit 2eebafe

Please sign in to comment.