Function filearco::get_file_data
[−]
[src]
pub fn get_file_data<P: AsRef<Path>>(base_path: P) -> Result<FileData>
This function retrieves basic information (i.e. path, length and checksum)
of all files under a specific base_path
.
NOTE: All file paths are relative to base_dir
Arguments
- base_path - the path of a directory to list.
Example
extern crate filearco; use std::path::Path; let path = Path::new("testarchives/simple"); let file_data = filearco::get_file_data(path).unwrap();