mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
pathExists: isDir when endswith /
Fixes https://github.com/NixOS/nix/issues/8838
(cherry picked from commit 1e08e12d81
)
This commit is contained in:
parent
9fcf142ee0
commit
6305ea6ad2
2 changed files with 14 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
builtins.pathExists (./lib.nix)
|
||||
&& builtins.pathExists (builtins.toPath ./lib.nix)
|
||||
&& builtins.pathExists (builtins.toString ./lib.nix)
|
||||
&& !builtins.pathExists (builtins.toString ./lib.nix + "/")
|
||||
&& builtins.pathExists (builtins.toPath (builtins.toString ./lib.nix))
|
||||
&& !builtins.pathExists (builtins.toPath (builtins.toString ./bla.nix))
|
||||
&& builtins.pathExists ./lib.nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue