Skip to content

Commit

Permalink
Fix target makedirs.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Jul 9, 2024
1 parent eec5c13 commit 5748245
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions law/target/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ def remove(self, *, silent: bool = True, **kwargs) -> bool: # type: ignore[over
def chmod(self, perm, *, silent: bool = False, **kwargs) -> bool:
return self.fs.chmod(self.path, perm, silent=silent, **kwargs)

def makedirs(self, *args, **kwargs) -> None:
parent = self.parent
if parent:
parent.touch(*args, **kwargs)

@abstractproperty
def fs(self) -> FileSystem:
...
Expand Down

0 comments on commit 5748245

Please sign in to comment.