DEV Community

Discussion on: Rust working with paths

Collapse
 
yawaramin profile image
Yawar Amin

What have you got so far? Would help to see what code you have, so we can figure out where to go from that.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I don't think it really helps sharing code sometimes, you either know what I'm doing or you don't and if you do, you have done it before. Not to say that you haven't Yawer, it's just a tend to get better potential answers. I will share the working code. Ben helped me out big time.

Collapse
 
yawaramin profile image
Yawar Amin

Fair enough, on re-reading your post it seems you just need doc.rust-lang.org/std/env/fn.curre... and doc.rust-lang.org/std/path/struct.... to join together the current working directory and a string directory.

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

Thanks that is a good lead 😁