Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading file cause ENOENT error #6

Closed
atty303 opened this issue May 23, 2024 · 3 comments
Closed

Reading file cause ENOENT error #6

atty303 opened this issue May 23, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@atty303
Copy link

atty303 commented May 23, 2024

    const rootZip = await fetch(`https://pob-web-asset.atty303.ninja/versions/v2.42.0/root.zip`);
    await zenfs.configure({
      mounts: {
        "/root": {
          backend: Zip,
          data: await rootZip.arrayBuffer(),
          name: "root.zip",
        },
      },
    });

    console.log(await zenfs.promises.exists("/root/.image.tsv")); // --> true
    console.log(await zenfs.promises.readFile("/root/.image.tsv"));

This lead to error.

Error: No such file or directory
    at _ErrnoError.With (chunk-VATA5WVB.js?v=693bd934:8481:12)
    at _open (chunk-VATA5WVB.js?v=693bd934:13219:24)
    at async open (chunk-VATA5WVB.js?v=693bd934:13239:10)
    at async Object.readFile (chunk-VATA5WVB.js?v=693bd934:13243:67)
    at async DriverWorker.start (worker.ts?worker_file&type=module:95:21)
  • core: 0.12.3
  • zip: 0.4.4
@james-pre james-pre added the bug Something isn't working label May 23, 2024
@james-pre james-pre self-assigned this May 23, 2024
@james-pre
Copy link
Member

I reproduced it locally and found an issue with core.

@james-pre james-pre changed the title 0.4.4: Reading file cause ENOENT error Reading file cause ENOENT error May 23, 2024
@james-pre
Copy link
Member

@atty303 core v0.12.4 fixes the issue.

@atty303
Copy link
Author

atty303 commented May 23, 2024

Thanks, I was able to confirm the fix for this Issue.

@atty303 atty303 closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants