lib/filesystem: remove absolute path literals

This commit is contained in:
Ameer Taweel
2026-04-28 00:59:06 +03:00
parent b0de7b521c
commit c6e1981fa2
+2 -2
View File
@@ -201,7 +201,7 @@ in
in
if builtins.length matches != 0 then
{ inherit path matches; }
else if path == /. then
else if toString path == "/" then
null
else
go (dirOf path);
@@ -211,7 +211,7 @@ in
base = baseNameOf file;
type = (builtins.readDir parent).${base} or null;
in
file == /. || type == "directory";
toString file == "/" || type == "directory";
in
go (if isDir then file else parent);