Expand description
Low-level parser for MTREE files. Youโll likely want to use parse_mtree_v2
instead.
Enumsยง
- Path
Property - This type is used in a path line to define properties for that path.
- Path
Type - All allowed kinds of path types.
- SetProperty
- Represents the properties that may be set in
/set
lines. - Statement
- Each line represents a line in a .MTREE file.
- Unset
Property - Represents the properties that can be unset by
/unset
lines.
Functionsยง
- link ๐
- Consume all chars of a link until a newline or space is hit.
- md5 ๐
- Parse an MD5 hash.
- mode ๐
- Parse a filesystem mode.
- mtree
- Parse a given .MTREE file.
- properties ๐
- Parse all path related properties that follow after a path declaration.
- property ๐
- Parse a single property.
- set_
properties ๐ - Parse all properties that follow a
/set
command. - set_
property ๐ - Parse a single
/set
property. - sha256 ๐
- Parse a SHA-256 hash.
- size ๐
- Get a string representing a size by consuming all integers.
- statement ๐
- Parse the next statement in the file.
- system_
id ๐ - Parse a simple system id as usize.
- timestamp ๐
- Parse a Unix timestamp.
- unset_
properties ๐ - Parse all properties that follow an
/unset
command. E.g./unset uid gid
โ โ This part - unset_
property ๐ - Parse a single
/unset
property.