nushell/crates/nu-command/src/path
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
..
basename.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
dirname.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
exists.rs Migrate to a new PWD API (#12603) 2024-05-03 14:33:09 +03:00
expand.rs Migrate to a new PWD API (#12603) 2024-05-03 14:33:09 +03:00
join.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
mod.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
parse.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
path_.rs Make get_full_help take &dyn Command (#12903) 2024-05-19 19:56:33 +02:00
relative_to.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
split.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
type.rs path type error and not found changes (#13007) 2024-06-11 05:40:09 +08:00