pub fn unique(dir: &Path, target: Location, regex: bool) -> Result<PathBuf>
Get an unique repository in directory otherwise return an error.