from_directory

method of dascore.core.spool.Spool source

from_directory(
    path ,
    index_path = None,
)-> ‘Self’

Create a spool over a directory of fiber files.

The directory’s index (created/updated via update()) backs the catalog; path may also be an existing directory indexer.

A directory which carries an inventory under the name .inventory — the authoring directory .inventory/ or a serialized .inventory.yaml, .inventory.yml, or .inventory.json — hands it to the spool, which reads it at the first question only an inventory can answer. See attach_inventory.