Return the directory path joined with any given path arguments.
(self, *args, **kwargs)
| 707 | return res |
| 708 | |
| 709 | def dirpath(self, *args, **kwargs): |
| 710 | """Return the directory path joined with any given path arguments.""" |
| 711 | if not kwargs: |
| 712 | path = object.__new__(self.__class__) |
| 713 | path.strpath = dirname(self.strpath) |
| 714 | if args: |
| 715 | path = path.join(*args) |
| 716 | return path |
| 717 | return self.new(basename="").join(*args, **kwargs) |
| 718 | |
| 719 | def join(self, *args: os.PathLike[str], abs: bool = False) -> LocalPath: |
| 720 | """Return a new path by appending all 'args' as path |