zoxide/src
hamodywe 55bc9f0f2f Fix "invalid path" error for UNC paths on Windows
resolve_path() only handled Prefix::Disk and Prefix::VerbatimDisk when
initializing the path root on Windows, so any UNC path (\server\share,
or its \?\UNC\server\share verbatim form) fell through to the
catch-all branch and errored with "invalid path", even though the path
itself was perfectly valid. This broke zoxide entirely for anyone whose
directories live on a network share.

Add a Prefix::UNC / Prefix::VerbatimUNC arm that builds the \server\share
root the same way the Disk arms build their drive root, and add
resolve_path unit tests covering UNC, verbatim UNC, and a disk-path
regression check.

Fixes #331
2026-08-09 01:08:28 +03:00
..
cmd import: auto-detect databases; add Atuin support (#1232) 2026-05-11 00:24:43 +05:30
db chore(release): v0.9.9 2026-01-31 13:12:16 +05:30
import Remove nix dependency (#1237) 2026-05-12 14:22:25 +05:30
config.rs Update nushell init script (#966) 2025-02-10 02:47:41 +05:30
error.rs Update nushell init script (#966) 2025-02-10 02:47:41 +05:30
import.rs import should skip excluded directories 2026-06-30 11:11:59 +05:30
main.rs import: auto-detect databases; add Atuin support (#1232) 2026-05-11 00:24:43 +05:30
shell.rs chore: improve code comments clarity (#1158) 2026-01-30 16:55:23 +05:30
util.rs Fix "invalid path" error for UNC paths on Windows 2026-08-09 01:08:28 +03:00