Expand description
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::LookupError;
pub use dir::MaybeResolved;
pub use dir::ResolveError;
Modules§
- Support operations for the dag-pb, the outer shell of UnixFS dag-pb support operations. Placing this module inside unixfs module is a bit unfortunate but follows from the inseparability of dag-pb and UnixFS.
- Directory and directory tree support
- File support. UnixFS file support.
- Symlink creation support UnixFS symlink support. UnixFS symlinks are UnixFS messages similar to single block files, but the link name or target path is encoded in the UnixFS::Data field. This means that the target path could be in any encoding, however it is always treated as an utf8 Unix path. Could be that this is wrong.
- Support for walking over all UnixFs trees
Structs§
- A link could not be transformed into a Cid.
- A container for the UnixFs metadata, which can be present at the root of the file, directory, or symlink trees.
- Wrapper around the unexpected UnixFs node type, allowing access to querying what is known about the type.