https://github.com/flier/rust-filename
Get filename from a raw file descriptor
https://github.com/flier/rust-filename
Last synced: over 1 year ago
JSON representation
Get filename from a raw file descriptor
- Host: GitHub
- URL: https://github.com/flier/rust-filename
- Owner: flier
- License: mit
- Created: 2019-07-23T12:05:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-11T13:47:35.000Z (over 2 years ago)
- Last Synced: 2025-03-24T07:14:11.383Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# filename [](https://travis-ci.org/flier/rust-filename) [](https://ci.appveyor.com/project/flier/rust-filename) [](https://crates.io/crates/filename) [](https://docs.rs/crate/filename/) [](https://deps.rs/repo/github/flier/rust-filename)
Get filename from a raw file descriptor
## Usage
To use `filename` in your project, add the following to your Cargo.toml:
``` toml
[dependencies]
filename = "0.1"
```
## Example
```rust
use filename::file_name;
let f = tempfile::tempfile().unwrap();
println!("tempfile @ {:?}", file_name(&f).unwrap());
```