mirror of
https://github.com/vale981/jobmanager
synced 2025-03-05 09:51:38 -05:00
create path in case it does not exists, persistentData
This commit is contained in:
parent
6ea374595c
commit
af917e327e
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ class PersistentDataStructure(object):
|
|||
self._name = name
|
||||
self._path = abspath(path)
|
||||
if not exists(self._path):
|
||||
raise RuntimeError("given path does not exists ({} -> {})".format(path, self._path))
|
||||
print("given path does not exists ({} -> {})".format(path, self._path))
|
||||
print("create path")
|
||||
os.makedirs(self._path)
|
||||
|
||||
|
||||
self.verbose = verbose
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue