Skip to main content

is_tree_node

Function is_tree_node 

Source
pub fn is_tree_node(data: &[u8]) -> bool
Expand description

Check if data is a MessagePack-encoded tree node (vs raw blob) Tree nodes decode successfully with type = File or Dir Note: Prefer try_decode_tree_node() to avoid double decoding