OceanColor.storage.FileSystem¶
- class OceanColor.storage.FileSystem(root: str)[source]¶
Backend for OceanColorDB based on files and directories
A file system backend for OceanColorDB to save the data files in directories. Distribute the files in a directory system close to the one in the OceanColor website, otherwise it could pile more than the OS can hold in the same directory.
- __init__(root: str)[source]¶
Initiate a FileSystem backend
- rootstr
Base path where to build/find the local data structure. All data is contained inside this directory.
Methods
__init__(root)Initiate a FileSystem backend
path(filename)Standard path for the given filename