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

Params to disable extracting .zip file content to another subdirectory ? #36

Closed
minedun6 opened this issue Aug 20, 2019 · 1 comment
Closed

Comments

@minedun6
Copy link

Is there any option disable extracting .zip file content to another subdirectory ?

Ex:

// Archive.zip contains the following structure
- Folder1
  - File1.jpg
  - File2.jpg
  - File3.jpg

When I run my code, The content of my zip file are under
Archive > Folder1 > content here.

What I want is that the content is directly under Archive.
Is it doable ?

Here's a portion of my code

let params = {
                    mode: "extract",
                    input: {
                        s3: {
                            accesskeyid: 'xxxxxxxxxxxxx',
                            secretaccesskey: 'xxxxxxxxxxxxxxxxxxxxx',
                            bucket: "xxxx-files-xxxx"
                        }
                    },
                    file: srcKey,
                    output: {
                        s3: {
                            accesskeyid: 'xxxxxxxxxxxxxxxxx',
                            secretaccesskey: 'xxxxxxxxxxxxxxxxxxxx',
                            bucket: 'xxxx-assets-xxxx',
                            path: "zfn2vN/qsYQDU/Archive/"
                        }
                    }
                };

                process.start(params);
@josiasmontag
Copy link
Contributor

This is currently not possible. You would need to handle that on your end using the S3 SDK.

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