filepath 0.1.0

Get the filesystem path of a file.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# filepath


Get the filesystem path of a file.

A simple extension trait for `File` that provides a single method `path`, which returns the path of a file.

**Note**: Not every file has a path. The path might be wrong for example after moving a file.

OS support: Linux, Mac, Windows

```rust
use std::fs::File;
use filepath::FilePath;

let mut file = File::create("foo.txt").unwrap();
println!("{:?}", file.path());
```