Enum rust_unixfs::walk::ContinuedWalk
source · pub enum ContinuedWalk<'a> {
Bucket(&'a Cid, &'a Path),
Directory(&'a Cid, &'a Path, &'a Metadata),
File(FileSegment<'a>, &'a Cid, &'a Path, &'a Metadata, u64),
RootDirectory(&'a Cid, &'a Path, &'a Metadata),
Symlink(&'a [u8], &'a Cid, &'a Path, &'a Metadata),
}
Expand description
Representation of the walk progress.
Variants§
Bucket(&'a Cid, &'a Path)
Currently looking at a continuation of a HAMT sharded directory. Usually safe to ignore.
Directory(&'a Cid, &'a Path, &'a Metadata)
Currently looking at a directory.
File(FileSegment<'a>, &'a Cid, &'a Path, &'a Metadata, u64)
Currently looking at a file. The first tuple value contains the file bytes accessible from the block, which can also be an empty slice.
RootDirectory(&'a Cid, &'a Path, &'a Metadata)
Currently looking at a root directory.
Symlink(&'a [u8], &'a Cid, &'a Path, &'a Metadata)
Currently looking at a symlink. The first tuple value contains the symlink target path. It might be convertible to UTF-8, but this is not specified in the spec.