file-operations-plugin
file-operations-plugin copied to clipboard
Enhance fileZipOperation to zip a list of files and folders
What feature do you want to see added?
Hello,
I want to be able to zip a list of files and folder, not just a folder. Here are some details.
Say I have a folder called contents, with a subfolder called files. Under files, I have the following files a.txt, b.txt, and c.txt. I also have a file info.xml under the folder contents. Here is a visual of that structure:
When I use fileZipOperation, I have to specify a folder which means I have to specify the folder contents. This results in a zip file containing the directory contents and all of its contents.
But I want to zip the contents of the contents folder without having the contents folder in the zip file.
In other words instead of this:
package.zip
I want the zip file to look like this:
package.zip
Upstream changes
No response
Are you interested in contributing this feature?
No response
@jonesbusy A day after I posted this request, I got an email from "Mohit Uchit" on this issue. It looked like a normal reply. But I can't see the reply on the issue. I'm not sure why. Maybe Mohit deleted the response? Any idea?
I'm not sure. I'm not activeley adding feature on this plugin. Just to keep it updated and review contributions if any
@majdi21 @jonesbusy
But by default, when you try to Zip a folder or some files, you will have the outer folder, Here its contents
But instead of removing the contents folder while zipping
We can move one step up in folder dir while unzipping
I also wish to contribute to the same.