pub fn is_local_path(url: &str) -> boolExpand description
Determines if a given URL/path is a local filesystem path (not a Git repository URL).
Local paths are directories on the filesystem that are directly accessible, as opposed to Git repository URLs that need to be cloned/fetched.
ยงExamples
use agpm_cli::utils::is_local_path;
// Unix-style paths
assert!(is_local_path("/absolute/path"));
assert!(is_local_path("./relative/path"));
assert!(is_local_path("../parent/path"));
// Windows-style paths (with drive letters or UNC)
assert!(is_local_path("C:/Users/path"));
assert!(is_local_path("C:\\Users\\path"));
assert!(is_local_path("//server/share"));
assert!(is_local_path("\\\\server\\share"));
// Git URLs (not local paths)
assert!(!is_local_path("https://github.com/user/repo.git"));
assert!(!is_local_path("git@github.com:user/repo.git"));
assert!(!is_local_path("file:///path/to/repo.git"));