dir_to_meetpath

Function dir_to_meetpath 

Source
pub fn dir_to_meetpath(dirpath: &Path) -> Result<String, MeetPathError>
Expand description

Gets the MeetPath from a string representing a directory.

Returns a String for the benefit of Windows, which requires changing the path separator.

ยงExamples

let dir = PathBuf::from("/home/opl-data/meet-data/rps/1924");
assert_eq!(dir_to_meetpath(&dir).unwrap(), "rps/1924");