pub fn current_dir_str_const(
working_set: &StateWorkingSet<'_>,
) -> Result<String, ShellError>
👎Deprecated since 0.92.3: please use
EngineState::cwd()
insteadExpand description
Returns the current working directory as a String, which is guaranteed to be canonicalized.
Returns an error if $env.PWD doesn’t exist, is not a String, or is not an absolute path.