about summary refs log tree commit diff
path: root/tests/lang/eval-okay-pathexists.nix
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-24T18·23+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-24T18·23+0000
commit0e705391dbe5340154d59106e591671923d107d0 (patch)
tree47a7b7bce403a3b622f59476c143a202d9163ba6 /tests/lang/eval-okay-pathexists.nix
parente47e0c2dbe808f299eb912da94640b95954703f7 (diff)
* Primop `toPath' to convert a string to a path.
* Primop `pathExists' to check for path existence.

Diffstat (limited to 'tests/lang/eval-okay-pathexists.nix')
-rw-r--r--tests/lang/eval-okay-pathexists.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-pathexists.nix b/tests/lang/eval-okay-pathexists.nix
new file mode 100644
index 000000000000..cabd6d9c75f3
--- /dev/null
+++ b/tests/lang/eval-okay-pathexists.nix
@@ -0,0 +1,3 @@
+builtins.pathExists (builtins.toPath ./lib.nix)
+&& builtins.pathExists ./lib.nix
+&& !builtins.pathExists ./bla.nix