Configure the filesystem backend. Args: path: the path to the root directory in the file system, which will be used \ to store the persisted data. Returns: Class instance denoting the filesystem storage backend with root directory \ at ``path``.
(cls, path: str | os.PathLike[str])
| 25 | |
| 26 | @classmethod |
| 27 | def filesystem(cls, path: str | os.PathLike[str]): |
| 28 | """ |
| 29 | Configure the filesystem backend. |
| 30 | |
| 31 | Args: |
| 32 | path: the path to the root directory in the file system, which will be used \ |
| 33 | to store the persisted data. |
| 34 | |
| 35 | Returns: |
| 36 | Class instance denoting the filesystem storage backend with root directory \ |
| 37 | at ``path``. |
| 38 | """ |
| 39 | return cls( |
| 40 | api.DataStorage( |
| 41 | storage_type="fs", |
| 42 | path=os.fspath(path), |
| 43 | ), |
| 44 | fs_path=path, |
| 45 | ) |
| 46 | |
| 47 | @classmethod |
| 48 | def s3(cls, root_path: str, bucket_settings: AwsS3Settings): |
no outgoing calls