42
submitted 3 weeks ago by tmpod@lemmy.pt to c/rust@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Ephera@lemmy.ml 2 points 2 weeks ago

Well, as it says in the documentation I linked:

unlike canonicalize absolute does not resolve symlinks and may succeed even if the path does not exist.

Primarily, the latter part is what I want. There's just sometimes situations where a path doesn't exist (yet), but you want to know what it would look like as an absolute path.

[-] taladar@sh.itjust.works 2 points 2 weeks ago* (last edited 2 weeks ago)

In 99% of those cases you would want it to resolve .. components though.

this post was submitted on 13 Jun 2024
42 points (97.7% liked)

Rust Programming

7734 readers
1 users here now

founded 5 years ago
MODERATORS