pub struct DirEntry {
pub name: String,
pub entry_type: String,
pub obj: String,
pub size: Option<i64>,
pub mtime: Option<String>,
pub mode: Option<String>,
pub summ: Option<DirSummaryLite>,
}Expand description
One entry of a kopia directory manifest (kopia show <dir-object-id>).
Files carry a top-level size; directories instead embed an aggregate
DirSummaryLite under summ. All fields beyond name/type/obj are
optional because kopia omits what doesn’t apply to the entry type.
Fields§
§name: StringEntry name (a single path component, never a path).
entry_type: StringEntry type: "d" (directory), "f" (file), "s" (symlink).
obj: StringThe kopia object id backing the entry — a directory’s obj can be
kopia shown for the next manifest level; a file’s streams its bytes.
size: Option<i64>File size in bytes (files only; directories report sizes via summ).
mtime: Option<String>Modification time as kopia rendered it (RFC3339; kept as a string so an unusual kopia rendering can never fail the whole manifest parse).
mode: Option<String>Unix permission bits as an octal string (e.g. "0755").
summ: Option<DirSummaryLite>Aggregate subtree summary (directories only).