oku_fs::fs::util

Function path_to_entry_prefix

Source
pub fn path_to_entry_prefix(path: &PathBuf) -> Bytes
Expand description

Converts a path to a key prefix for entries in a file system replica.

§Arguments

  • path - The path to convert to a key prefix.

§Returns

A byte string representing the path, without a null byte at the end.