files
FileStoreResource
¶
Bases: ConfigurableResource
Location of the data files that are generated in the pipeline.
Source code in packages/common/src/bag3d/common/resources/files.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
path
property
¶
Return the root directory as a Path, creating it if it does not exist.
create_subdir(subdir)
¶
Create and return a subdirectory within the file store directory.
Source code in packages/common/src/bag3d/common/resources/files.py
33 34 35 36 37 | |
rm(force=False)
¶
Remove the storage directory.
Source code in packages/common/src/bag3d/common/resources/files.py
24 25 26 27 28 29 30 31 | |
stage_dir(stage)
¶
Return the directory for a pipeline stage, creating it if needed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
str
|
Stage name, e.g. "reconstruction", "party_walls", "floors_estimation", "export", "deploy" |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path object pointing to stages/{stage}/ under root_dir. |
Source code in packages/common/src/bag3d/common/resources/files.py
39 40 41 42 43 44 45 46 47 48 49 50 51 | |
stage_subdir(stage, *parts)
¶
Return a subdirectory inside a stage, creating it if needed.
Source code in packages/common/src/bag3d/common/resources/files.py
53 54 55 56 57 | |