nushell/crates/nu-command
Ian Manske 944d941dec
path type error and not found changes (#13007)
# Description
Instead of an empty string, this PR changes `path type` to return null
if the path does not exist. If some other IO error is encountered, then
that error is bubbled up instead of treating it as a "not found" case.

# User-Facing Changes
- `path type` will now return null instead of an empty string, which is
technically a breaking change. In most cases though, I think this
shouldn't affect the behavior of scripts too much.
- `path type` can now error instead of returning an empty string if some
other IO error besides a "not found" error occurs.

Since this PR introduces breaking changes, it should be merged after the
0.94.1 patch.
2024-06-11 05:40:09 +08:00
..
src path type error and not found changes (#13007) 2024-06-11 05:40:09 +08:00
tests fix wrong casting with into filesize (#13110) 2024-06-10 10:43:17 +08:00
Cargo.toml Try to preserve the ordering of elements in from toml (#13045) 2024-06-05 08:00:39 +08:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00