Age | Commit message (Collapse) | Author | Files | Lines |
|
In https://github.com/NixOS/nix/pull/9269 the error messages change
which would've broken this test.
|
|
|
|
|
|
Previously it would fail with
error: attribute 'nonexistent' missing
at nixpkgs/lib/filesystem.nix:29:10:
28| if dirOf path == path then "directory"
29| else (readDir (dirOf path)).${baseNameOf path};
| ^
30|
|
|
Previously this function couldn't handle / being passed, it would throw
an error:
error: attribute '' missing
at nixpkgs/lib/filesystem.nix:24:20:
23| */
24| pathType = path: (readDir (dirOf path)).${baseNameOf path};
| ^
25|
Consequently this also fixes the
lib.filesystem.{pathIsDirectory,pathIsRegularFile} functions.
|
|
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
|