mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 11:13:21 +00:00
fix(reference): retain partial imports for unreadable directories (#766)
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
This commit is contained in:
1 parent
ae81f64d2a
commit
cffc548cd3
2 files changed
+87
-1
No files matched your search
@@ -79,6 +79,12 @@ export const traverseDirectory = async (
|
||||
);
|
||||
return { ok: true, value: undefined };
|
||||
}
|
||||
if (current.path !== state.root)
|
||||
state.entries.push({
|
||||
status: "read",
|
||||
kind: "directory",
|
||||
path: pathFromRoot(state.root, current.path),
|
||||
});
|
||||
const directories: PendingDirectory[] = [];
|
||||
for (const name of names.value) {
|
||||
const result = await processEntry(state, current, name, directories);
|
||||
@@ -168,7 +174,6 @@ const processEntry = async (
|
||||
await describeSymlink(state.root, absolute, path, state.signal),
|
||||
);
|
||||
else if (metadata.value.isDirectory()) {
|
||||
state.entries.push({ status: "read", kind: "directory", path });
|
||||
directories.push({ path: absolute });
|
||||
} else if (!metadata.value.isFile())
|
||||
state.entries.push(
|
||||
|
||||
Reference in new issue
Block a user