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

compressing.zip.uncompress deep children files would be lost #49

Open
woden0415 opened this issue Jun 26, 2020 · 1 comment
Open

compressing.zip.uncompress deep children files would be lost #49

woden0415 opened this issue Jun 26, 2020 · 1 comment

Comments

@woden0415
Copy link

Hi, man !

what I do:

// the front upload a `prd.zip` file。I receive it, unzip it,and send it to another folder。
// I use the following code。
const reader = fs.createReadStream(ctx.request.files['file']['path']);
const filePath = `${path.resolve(__dirname, '../../www/assets')}/ddmccdn/`;
compressing.zip.uncompress(reader, filePath)

What I want:

under the floder ddmccdn/,I can find all unziped files.

What I meet:

  1. when I use stream as compressing.zip.uncompress source param, I find children'children'children's file will be lost
  2. When I use file path as compressing.zip.uncompress source param, I find children'children'children'children's file will be lost

The following is my project:
https://github.com/woden0415/prdreview1

Looking forward to your reply!

@sunny-shu
Copy link

1.if it is your file path is to long to exceed the system limit
2.you'd better upload your zip file for reproduce the problem

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

2 participants