Function tvix_castore::import::fs::ingest_path

source ยท
pub async fn ingest_path<BS, DS, P, P2>(
    blob_service: BS,
    directory_service: DS,
    path: P,
    reference_scanner: Option<&ReferenceScanner<P2>>,
) -> Result<Node, IngestionError<Error>>
where P: AsRef<Path> + Debug, BS: BlobService + Clone, DS: DirectoryService, P2: AsRef<[u8]> + Send + Sync,
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.