Skip to content

Commit

Permalink
pathExists: Document symlink behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Feb 7, 2024
1 parent bd0598d commit a4fb8f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libexpr/primops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,9 @@ static RegisterPrimOp primop_pathExists({
.doc = R"(
Return `true` if the path *path* exists at evaluation time, and
`false` otherwise.
If the path refers to a symlink, `pathExists` returns `true` without
checking the target of the symlink.
)",
.fun = prim_pathExists,
});
Expand Down

0 comments on commit a4fb8f1

Please sign in to comment.