Skip to main content

path_is_taken

Function path_is_taken 

Source
fn path_is_taken(path: &Path) -> bool
Expand description

Whether something at path is in the way of git worktree add, which takes a path that is absent or an empty directory and refuses anything else: a file, and any directory holding an entry, both exit 128 (“already exists”). A dotfile counts as an entry - measured.