Function tvix_castore::import::fs::ingest_path

source ·
pub async fn ingest_path<BS, DS, P>(
    blob_service: BS,
    directory_service: DS,
    path: P
) -> Result<Node, IngestionError<Error>>
Expand description

Ingests the contents at a given path into the tvix store, interacting with a BlobService and DirectoryService. It returns the root node or an error.

It does not follow symlinks at the root, they will be ingested as actual symlinks.

This function will walk the filesystem using walkdir and will consume O(#number of entries) space.