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
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
bag3d_dir
property
¶
Get the main 3D BAG data directory.
geoflow_crop_dir
property
¶
Get the directory for Geoflow crop-reconstruct operation output.
path
property
¶
Return the data directory as a Path, creating it if it does not exist.
ahn_laz_dir(ahn_version)
¶
Get the directory for AHN LAZ files per version.
Source code in packages/common/src/bag3d/common/resources/files.py
77 78 79 | |
bag3d_export_dir(version)
¶
Get the 3DBAG export directory for a specific version.
Source code in packages/common/src/bag3d/common/resources/files.py
73 74 75 | |
create_subdir(subdir)
¶
Create and return a subdirectory within the main file store directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
subdir
|
str
|
Relative path of the subdirectory to create. |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path object pointing to the created subdirectory. |
Note
Creates parent directories if they don't exist.
Source code in packages/common/src/bag3d/common/resources/files.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
rm(force=False)
¶
Remove the storage directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
force
|
bool
|
If True, recursively removes the directory with its contents. If False, only removes an empty directory. |
False
|
Warning
This permanently deletes data. Use force=True with caution.
Source code in packages/common/src/bag3d/common/resources/files.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | |