Function uucore::fs::dir_strip_dot_for_creation
source · pub fn dir_strip_dot_for_creation(path: &Path) -> PathBufExpand description
For some programs like install or mkdir, dir/. can be provided Special case to match GNU’s behavior: install -d foo/. should work and just create foo/ std::fs::create_dir(“foo/.”); fails in pure Rust