Page 1 of 1

Top-level zips

Posted: Thu Jun 23, 2016 4:21 pm
by gabrielp
Is it possible to Zip/Archive two files together at the top level of a zip? I have the files together in a folder now and when I zip them, the contents of the zip are:

myzip.zip
----Job Folder/
--------file1.xml
--------file2.xml

What I want is:

myzip.zip
----file1.xml
----file2.xml

Is this possible within Switch or do I need to write a script?

Re: Top-level zips

Posted: Thu Jun 23, 2016 4:57 pm
by gabrielp
I don't think it's possible so I wrote a script: https://github.com/open-automation/switch-flat-archive