Skip to content

Commit

Permalink
Add reference to blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
tesujimath committed Jan 19, 2025
1 parent da287a7 commit 5327aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The extensive [tests](https://github.com/tesujimath/real_parent/blob/main/tests/
## Rationale

The standard library method `Path::parent` is not safe in the presence of symlinks.
For background information and a comprehensive analysis see the Plan 9 paper [Getting Dot-Dot Right](https://9p.io/sys/doc/lexnames.html).
For background information and a comprehensive analysis see the Plan 9 paper [Getting Dot-Dot Right](https://9p.io/sys/doc/lexnames.html). See also [Path canonicalization is unergonomic](https://tesujimath.org/path-canonicalization-is-unergonomic/).

So far the Rust community has leaned extensively on `Path::canonicalize` to mitigate this. While this approach avoids path breakage, it has
the unpleasant result of making all paths absolute, and resolving symlinks into their underlying physical paths.
Expand Down

0 comments on commit 5327aa3

Please sign in to comment.