Crate cwd

source ·
Expand description

cwd - Current Working Directory, a convenience crate

Instead of copy-pasting this bit of code yet again when I need the fully qualified current working directory, I decided to turn it into a convenience crate in the name of code reuse.

Example

use cwd::cwd;

fn main() {
    println!("The current working directory is '{}'", cwd());
}

Functions

Get the current working directory