file-operations-plugin icon indicating copy to clipboard operation
file-operations-plugin copied to clipboard

Enhance fileZipOperation to zip a list of files and folders

Open majdi21 opened this issue 1 year ago • 4 comments

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:

Image

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 Image

I want the zip file to look like this:

package.zip Image

Upstream changes

No response

Are you interested in contributing this feature?

No response

majdi21 avatar Oct 03 '24 18:10 majdi21

@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?

majdi21 avatar Nov 14 '24 14:11 majdi21

I'm not sure. I'm not activeley adding feature on this plugin. Just to keep it updated and review contributions if any

jonesbusy avatar Nov 14 '24 15:11 jonesbusy

@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

Mahesh-Sivashankaran avatar Dec 29 '24 16:12 Mahesh-Sivashankaran

I also wish to contribute to the same.

Mahesh-Sivashankaran avatar Dec 29 '24 16:12 Mahesh-Sivashankaran