[−][src]Function dia_args::paths::handle_path
pub fn handle_path<P>(path: P, kind: PathKind, option: TakeOption) -> Result<()> where
P: AsRef<Path>,
Handles path
This function verifies path kind and handles option. New directory or new file will be made if necessary.
Examples
use dia_args::paths::{self, PathKind, TakeOption}; paths::handle_path(file!(), PathKind::File, TakeOption::MustExist).unwrap();