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 |
||
|---|---|---|
| .. | ||
| cmd | ||
| db | ||
| import | ||
| config.rs | ||
| error.rs | ||
| import.rs | ||
| main.rs | ||
| shell.rs | ||
| util.rs | ||