Unzip to ResourceSet

Necessary bricks
Contributor(s)
Publication date

Mar 31, 2026

Confidentiality
Public
Reactions
0
0
Share

Description of the agent

This agent takes a zip file as input and turns its contents into a Resource Set — a collection of resources you can use in the rest of your workflow.


What it does


  1. You give it a zip file.
    1. It unzips the contents.
      1. It creates one resource per item, grouped together in a single Resource Set output.

        Input


        • 1 zip file

          Output


          • 1 Resource Set containing the extracted items.

            Parameter



            Modes


            nested (default) Keeps the structure of the zip as-is. For each item at the top level of the zip:


            • file stays a file,
              • folder stays a folder (with everything inside it).

                Example — a zip containing report.pdf and a folder images/ gives you 2 resources: one file (report.pdf) and one folder (images).


                flatten Looks inside all folders, no matter how deep, and pulls out every file. No folders are kept — you only get files. To avoid two files with the same name overwriting each other, each file keeps its path inside the zip as its name.


                Example — a zip containing data/2023/results.csv and data/2024/results.csv gives you 2 file resources named data/2023/results.csv and data/2024/results.csv.


                Which mode should I use?


                • Use nested when you want to preserve the original folder organization.
                  • Use flatten when you just want all the files in one flat list and don't care about the folders they came from.


                    Latest version infos (V2)

                    Add support for mode param (nested or flatten)


                    Input(s)

                    Zipped file

                    Output(s)

                    Resource Set
                    ResourceSet containing the sub files and folders

                    Parameters

                    mode

                    Optional

                    Nested: create File and Folder resources for each root-level entry | Flatten: walk all nested folders and create only File resources

                    Type : select_paramDefault value : nested

                    Code

                    Comments (0)

                    Write a comment
                    Shine Logo
                    Ready-to-use smart agents

                    Have you developed an agent?

                    Share it to accelerate projects for the entire community.