#filename

filename

Get filename from a raw file descriptor

2 releases

0.1.1 Jul 24, 2019
0.1.0 Jul 24, 2019

#269 in Filesystem

34 downloads per month
Used in 2 crates

MIT license

8KB
154 lines

filename travis Build status crate docs dependency status

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

~34KB