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
- You give it a zip file.
- It unzips the contents.
- 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:
- a file stays a file,
- a 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
nestedwhen you want to preserve the original folder organization. - Use
flattenwhen you just want all the files in one flat list and don't care about the folders they came from.
Latest version infos (V1)
Input(s)
Output(s)
Parameters
mode
Nested: create File and Folder resources for each root-level entry | Flatten: walk all nested folders and create only File resources
select_paramnested
Comments (0)
Write a comment