##// END OF EJS Templates
vfs: make it possible to pass multiple path elements to join...
Matt Harbison -
r24628:a0b47885 default
parent child Browse files
Show More
@@ -445,9 +445,9 b' class vfs(abstractvfs):'
445 445 else:
446 446 self.write(dst, src)
447 447
448 def join(self, path):
448 def join(self, path, *insidef):
449 449 if path:
450 return os.path.join(self.base, path)
450 return os.path.join(self.base, path, *insidef)
451 451 else:
452 452 return self.base
453 453
@@ -475,9 +475,9 b' class filtervfs(abstractvfs, auditvfs):'
475 475 def __call__(self, path, *args, **kwargs):
476 476 return self.vfs(self._filter(path), *args, **kwargs)
477 477
478 def join(self, path):
478 def join(self, path, *insidef):
479 479 if path:
480 return self.vfs.join(self._filter(path))
480 return self.vfs.join(self._filter(self.vfs.reljoin(path, *insidef)))
481 481 else:
482 482 return self.vfs.join(path)
483 483
General Comments 0
You need to be logged in to leave comments. Login now