Uipath compress/zip files activity doesn't retain the original folder structure

Hello,

I am currently facing a problem in an automation to compress folders using UiPath activity compress/zip files.

The requirement is to automate Zipping a Folder i.e. When a user manually right-clicks a folder and selects “Compress” or “Zip,” the entire folder is compressed into a .zip file. This means that the structure of the folder (its name and any subfolders) is preserved. When extracted, you get the folder and its contents back, just as they were.

However, UiPath is Zipping Files (Images) Inside the Folder i.e. the UiPath automation is only zipping the files within the folder (e.g., the images), then the .zip file will contain only those files directly, without the enclosing folder. When extracted, the images will be placed in the same directory where the .zip file is extracted, without the original folder structure.

How to compress folder in UiPath to create identical zipped/compressed files such that the structure of the folder is preserved.

Thanks in Advance

@AKhn

Welcome to the community

there is no direct activity you can use the below method using invoke method or invoke code and achieve the same

cheers

Thank you for your reply.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.