pub fn pack_directory_to_snapshot(directory: &Path) -> Result<DirectorySnapshot>