* Primop `toPath' to convert a string to a path.
* Primop `pathExists' to check for path existence.
This commit is contained in:
parent
e47e0c2dbe
commit
0e705391db
3 changed files with 30 additions and 7 deletions
1
tests/lang/eval-okay-pathexists.exp
Normal file
1
tests/lang/eval-okay-pathexists.exp
Normal file
|
@ -0,0 +1 @@
|
|||
Bool(True)
|
3
tests/lang/eval-okay-pathexists.nix
Normal file
3
tests/lang/eval-okay-pathexists.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
builtins.pathExists (builtins.toPath ./lib.nix)
|
||||
&& builtins.pathExists ./lib.nix
|
||||
&& !builtins.pathExists ./bla.nix
|
Loading…
Add table
Add a link
Reference in a new issue