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

Zipping a directory is working on Windows but not on Linux #552

Open
sebovzeoueb opened this issue Feb 20, 2025 · 1 comment
Open

Zipping a directory is working on Windows but not on Linux #552

sebovzeoueb opened this issue Feb 20, 2025 · 1 comment

Comments

@sebovzeoueb
Copy link

sebovzeoueb commented Feb 20, 2025

I have the following code which is working fine in Windows:

await zip.addLocalFolderPromise(path.join(import.meta.dir, "docker_compose"), {zipPath: "docker_compose"})
await zip.writeZipPromise(path.join(import.meta.dir, "..", "assets", "docker_compose.zip"), {overwrite: true})

It adds all the files from the docker_compose directory relative to the script. On Windows this is working, however when I run it on my Ubuntu WSL it creates an empty zip.

@sebovzeoueb
Copy link
Author

This actually helped me: #538 (comment)

I had to use the sync version instead of Promises, but yeah, unlike that issue I'm noticing the problem on Linux but not Windows. Would be nice to have the async versions fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant