eradiate.data.BlindDirectoryDataStore#

class eradiate.data.BlindDirectoryDataStore(path)[source]#

Bases: DataStore

Serve files stored in a directory.

Parameters:

path (path-like) – Path to the root of the directory referenced by this data store.

Fields:

path (Path) – Path to the root of the directory referenced by this data store.

fetch(filename, **kwargs)[source]#

Fetch a file from the data store.

Parameters:

filename (path-like) – File name to fetch from the data store, relative to the storage root.

Returns:

Path – Absolute path where the retrieved resource is located.

Raises:

DataError – The requested file could not be served.

registry_files(filter=None)[source]#

Returns an empty list (this data store has no registry).

property base_url#

Raises NotImplementedError (this data store has no target location).

property registry#

Raises NotImplementedError (this data store has no registry).