5 stable releases
1.1.6 | Feb 19, 2023 |
---|---|
1.1.5 | Jul 16, 2022 |
1.1.4 | Apr 5, 2022 |
#1 in #qualified
Used in sssg
4KB
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());
}
Caveats
This is best effort. If it can't find the fully qualified current working directory for some reason, it will fallback to "."
Support
Please report any bugs or feature requests at:
Feel free to fork the repository and submit pull requests :)
Слава Україні!
Author
Warranty
IT COMES WITHOUT WARRANTY OF ANY KIND.
Copyright and License
Copyright (C) 2023 by Alfie John
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.