Crates.io | pathdiv |
lib.rs | pathdiv |
version | 0.1.0 |
source | src |
created_at | 2020-05-11 02:18:49.928666 |
updated_at | 2020-05-11 02:18:49.928666 |
description | This library provides an API similar to pathlib of python. |
homepage | |
repository | https://github.com/suzusuzu/pathdiv |
max_upload_size | |
id | 239898 |
size | 13,204 |
This library provides an API similar to pathlib of python. "/" can be used to join the path. PathDiv is a wrapper for PathBuf.
use pathdiv::PathDiv;
let mut path = PathDiv::from("/etc");
path = path / "init.d";
path /= "ssh";
println!("{}", path); // "/etc/init.d/ssh"