Crates.io | filename |
lib.rs | filename |
version | 0.1.1 |
source | src |
created_at | 2019-07-24 03:08:46.40976 |
updated_at | 2019-07-24 07:07:19.640771 |
description | Get filename from a raw file descriptor |
homepage | |
repository | https://github.com/flier/rust-filename |
max_upload_size | |
id | 151209 |
size | 9,806 |
Get filename from a raw file descriptor
To use filename
in your project, add the following to your Cargo.toml:
[dependencies]
filename = "0.1"
use filename::file_name;
let f = tempfile::tempfile().unwrap();
println!("tempfile @ {:?}", file_name(&f).unwrap());