filepath

Crates.iofilepath
lib.rsfilepath
version0.1.2
sourcesrc
created_at2018-08-02 22:21:09.885599
updated_at2022-05-06 21:39:47.544651
descriptionGet the filesystem path of a file.
homepage
repositoryhttps://github.com/evilpie/filepath
max_upload_size
id77225
size18,968
Tom Schuster (evilpie)

documentation

README

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

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

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

cargo fmt