fix: protect touch
This commit is contained in:
parent
df05678ddc
commit
69023f1917
@ -32,6 +32,8 @@ class Path():
|
|||||||
return self._name
|
return self._name
|
||||||
|
|
||||||
def touch(self) -> None:
|
def touch(self) -> None:
|
||||||
|
if (self.exist()):
|
||||||
|
return None
|
||||||
open(self.get_absolute_path(), "w+").close()
|
open(self.get_absolute_path(), "w+").close()
|
||||||
|
|
||||||
def create(self) -> None:
|
def create(self) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user