Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make touch a staticmethod
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
mackerel/build.py
|
@@ -63,7 +63,8 @@ def execute(self, dry_run: bool = False) -> None: |
|
|
path.parent.mkdir(parents=True) |
|
|
shutil.copyfile(src=f, dst=path) |
|
|
|
|
|
def touch(self, path: Path) -> bool: |
|
|
@staticmethod |
|
|
def touch(path: Path) -> bool: |
|
|
if not path.parent.exists(): |
|
|
path.parent.mkdir(parents=True) |
|
|
path.touch() |
|
|