mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
217eb4ed70
# Description Fixes: #13460 The issue is caused by `try_exists` method on path, it will return `Err(NotADirectory)` if user tried to check for a path under a regular file. To fix it, I think it's ok to use `exists` rather than `try_exists`, although [Path::exists()](https://doc.rust-lang.org/std/path/struct.Path.html#method.exists) only checks whether or not a path was both found and readable. I think it's ok, and we can add this information under `extra_description`. # User-Facing Changes The following code will no longer raise error: ``` touch a; 'a/b' | path exists ``` # Tests + Formatting Added 1 test. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
LICENSE | ||
README.md |
This crate contains the majority of our commands
We allow ourselves to move some of the commands in nu-command
to nu-cmd-*
crates as needed.
Internal Nushell crate
This crate implements components of Nushell and is not designed to support plugin authors or other users directly.