[][src]Crate ipfs_unixfs

ipfs-unixfs: UnixFs tree support in Rust.

The crate aims to provide a blockstore implementation independent of the UnixFs implementation by working on slices and not doing any IO operations.

The main entry point for extracting information and/or data out of UnixFs trees is ipfs_unixfs::walk::Walker. To resolve IpfsPath segments over dag-pb nodes, ipfs_unixfs::resolve should be used.

Re-exports

pub use dir::resolve;
pub use dir::MaybeResolved;
pub use dir::ResolveError;

Modules

dagpb

Support operations for the dag-pb, the outer shell of UnixFS.

dir

UnixFS directory support, currently only the resolving re-exported at root level.

file

UnixFS file support.

walk

Support for walking over all UnixFs trees.

Structs

InvalidCidInLink

A link could not be transformed into a Cid.

Metadata

A container for the UnixFs metadata, which can be present at the root of the file, directory, or symlink trees.

UnexpectedNodeType

Wrapper around the unexpected UnixFs node type, allowing access to querying what is known about the type.

Enums

LookupError

Errors which can occur when looking up a HAMTSharded directory.