Skip to content

Commit

Permalink
Fixed incorrect join
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed May 23, 2024
1 parent bf6c625 commit 08c3592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ export class WebAccessFS extends Async(FileSystem) {
if (!(handle instanceof FileSystemDirectoryHandle)) {
throw ErrnoError.With('ENOTDIR', path, 'readdir');
}
const _keys: string[] = [];
const keys: string[] = [];
for await (const key of handle.keys()) {
_keys.push(join(path, key));
keys.push(key);
}
return _keys;
return keys;
}

protected async getHandle(path: string): Promise<FileSystemHandle> {
Expand Down

0 comments on commit 08c3592

Please sign in to comment.