pub fn current_dir(
engine_state: &EngineState,
stack: &Stack,
) -> Result<PathBuf, ShellError>
👎Deprecated since 0.92.3: please use
EngineState::cwd()
insteadExpand description
Returns the current working directory, which is guaranteed to be canonicalized.
Unlike current_dir_const()
, this also considers modifications to the current working directory made on the stack.
Returns an error if $env.PWD doesn’t exist, is not a String, or is not an absolute path.