create the directory if it does not exist
(path: &Path)
| 636 | |
| 637 | /// create the directory if it does not exist |
| 638 | pub fn create_dir_if_nonexist(path: &Path) -> Result<()> { |
| 639 | std::fs::create_dir_all(path)?; |
| 640 | Ok(()) |
| 641 | } |
| 642 | |
| 643 | /// read the directory and sort the entries by the alphabet oder |
| 644 | pub fn read_sort_dir(dir: &Path) -> Result<Vec<PathBuf>> { |
no outgoing calls