add HTML and ENV_FILES
This commit is contained in:
parent
b124625a52
commit
4c5f469cd8
1 changed files with 14 additions and 4 deletions
|
|
@ -25,7 +25,9 @@ class DirManager:
|
|||
|
||||
def create_all_dirs(self):
|
||||
self.create_dirs(self._output_dir, exist_ok=True)
|
||||
self.create_dirs([self.SESSION, self.RECORDS, self.RECORDS / "html", self.STATES, self.RESULTS], exist_ok=True)
|
||||
self.create_dirs(
|
||||
[self.SESSION, self.RECORDS, self.HTML, self.STATES, self.ENV_FILES, self.RESULTS], exist_ok=True
|
||||
)
|
||||
|
||||
@property
|
||||
def OUTPUT(self):
|
||||
|
|
@ -37,15 +39,23 @@ class DirManager:
|
|||
|
||||
@property
|
||||
def RECORDS(self):
|
||||
return self.SESSION / Path("records")
|
||||
return self.SESSION / "records"
|
||||
|
||||
@property
|
||||
def HTML(self):
|
||||
return self.RECORDS / "html"
|
||||
|
||||
@property
|
||||
def STATES(self):
|
||||
return self.SESSION / Path("states")
|
||||
return self.SESSION / "states"
|
||||
|
||||
@property
|
||||
def ENV_FILES(self):
|
||||
return self.STATES / "env_files"
|
||||
|
||||
@property
|
||||
def RESULTS(self):
|
||||
return self.SESSION / Path("results")
|
||||
return self.SESSION / "results"
|
||||
|
||||
@staticmethod
|
||||
def create_dirs(dirs: Path | list[Path] | dict[str, Path], exist_ok=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue