Skip to content

Commit

Permalink
fix OPFS and LocalFS "ls" in v86
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerIn-wonderland committed Oct 5, 2024
1 parent 62c5b98 commit c729c6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/LocalFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,10 @@ class LocalFS extends AFSProvider<LocalFSStats> {
} catch (e) {
try {
const handle = await this.getChildDirHandle(path);
let rootName;
if (!path) rootName = this.domain.split("/").pop();
return new LocalFSStats({
name: handle.name,
name: rootName || handle.name,
mode: 0o40777,
type: "DIRECTORY",
});
Expand Down

0 comments on commit c729c6d

Please sign in to comment.