From 0e705391dbe5340154d59106e591671923d107d0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 24 Sep 2006 18:23:32 +0000 Subject: * Primop `toPath' to convert a string to a path. * Primop `pathExists' to check for path existence. --- tests/lang/eval-okay-pathexists.exp | 1 + tests/lang/eval-okay-pathexists.nix | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 tests/lang/eval-okay-pathexists.exp create mode 100644 tests/lang/eval-okay-pathexists.nix (limited to 'tests') diff --git a/tests/lang/eval-okay-pathexists.exp b/tests/lang/eval-okay-pathexists.exp new file mode 100644 index 000000000000..2015847b65e7 --- /dev/null +++ b/tests/lang/eval-okay-pathexists.exp @@ -0,0 +1 @@ +Bool(True) 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 -- cgit 1.4.1