2 releases
0.1.1 | Jul 24, 2019 |
---|---|
0.1.0 | Jul 24, 2019 |
#1087 in Filesystem
239 downloads per month
Used in 4 crates
9KB
154 lines
filename
Get filename from a raw file descriptor
Usage
To use filename
in your project, add the following to your Cargo.toml:
[dependencies]
filename = "0.1"
Example
use filename::file_name;
let f = tempfile::tempfile().unwrap();
println!("tempfile @ {:?}", file_name(&f).unwrap());
lib.rs
:
Get filename from a raw file descriptor
Example
use filename::file_name;
let f = tempfile::tempfile().unwrap();
println!("tempfile @ {:?}", file_name(&f).unwrap());
Dependencies
~220KB