pathdiv

Crates.iopathdiv
lib.rspathdiv
version0.1.0
sourcesrc
created_at2020-05-11 02:18:49.928666
updated_at2020-05-11 02:18:49.928666
descriptionThis library provides an API similar to pathlib of python.
homepage
repositoryhttps://github.com/suzusuzu/pathdiv
max_upload_size
id239898
size13,204
suzu (suzusuzu)

documentation

README

pathdiv

Rust

This library provides an API similar to pathlib of python. "/" can be used to join the path. PathDiv is a wrapper for PathBuf.

Example

use pathdiv::PathDiv;

let mut path = PathDiv::from("/etc");
path = path / "init.d";
path /= "ssh";
println!("{}", path); // "/etc/init.d/ssh"
Commit count: 14

cargo fmt