Top-level zips

Post Reply
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Top-level zips

Post 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?
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Top-level zips

Post by gabrielp »

I don't think it's possible so I wrote a script: https://github.com/open-automation/switch-flat-archive
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Post Reply