DEV Community

Discussion on: Rust working with paths

Collapse
 
deciduously profile image
Ben Lovy • Edited

Yep, that's exactly what I was getting at. You literally just push a Path to a PathBuf and there it is, and now it's been attached as a child directory. No need to resolve anything else.

String has a split() - that should help!