#file-descriptor #filenames #raw #name

filename

Get filename from a raw file descriptor

2 releases

0.1.1 Jul 24, 2019
0.1.0 Jul 24, 2019

#1087 in Filesystem

Download history 216/week @ 2024-07-20 153/week @ 2024-07-27 114/week @ 2024-08-03 237/week @ 2024-08-10 220/week @ 2024-08-17 222/week @ 2024-08-24 189/week @ 2024-08-31 110/week @ 2024-09-07 90/week @ 2024-09-14 66/week @ 2024-09-21 85/week @ 2024-09-28 65/week @ 2024-10-05 72/week @ 2024-10-12 38/week @ 2024-10-19 67/week @ 2024-10-26 55/week @ 2024-11-02

239 downloads per month
Used in 4 crates

MIT license

9KB
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

~220KB