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