dyne / restroom-mw

🛠 Easy REST API builder executing Zencode
https://restroom.dyne.org
GNU Affero General Public License v3.0
3 stars 11 forks source link

Statement that downloads zip and extracts it into a folder #112

Closed andrea-dintino closed 2 years ago

andrea-dintino commented 2 years ago

We need a statement that downloads a zip from an endpoint and extracts it in a given folder:

Given I have a 'string' named 'myFile'
Given I have a 'string' named "myFolder'

Then I download the 'myFile" and extract it into "myFolder"

data:

{
"myFile": "https://zenroom.org/robba.zip"
"myFolder": "/home/instance/"
}

Maybe using:

https://www.npmjs.com/package/extract-zip

andrea-dintino commented 2 years ago

Closed with commit: https://github.com/dyne/restroom-mw/commit/5786eb4008a95ffa6009bba94e7bd0e21a3f79f0