Function get_pwd

Source
pub fn get_pwd(dir: Option<&Path>) -> PathBuf
Expand description

Returns a Pathbuf of current working dir or the dir if provided.

It’s to be used with exec()

§Example

get_pwd(None);