builtins.pathExists with a (string) path that treats a directory as a string(?) throws an error
#411
Opened by aspen at
tvix-repl> builtins.pathExists "/tmp/foo" => true :: bool tvix-repl> builtins.pathExists "/tmp/foo/." 2024-07-27T18:42:08.008109Z ERROR interpret:path_exists: tvix_glue::tvix_store_io: error=Not a directory (os error 20) indicatif.pb_show=1 path="/tmp/foo/." ⠁ Evaluating… (0s) 0/0 note: while evaluating this Nix code --> [code]:1:1 | 1 | builtins.pathExists "/tmp/foo/." | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E029]: I/O error: /tmp/foo/.: Not a directory (os error 20) --> [code]:1:1 | 1 | builtins.pathExists "/tmp/foo/." | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- chickadee closed this issue at 2024-07-27T21·01+00