Top-level zips

Post Reply
User avatar
gabrielp
Advanced member
Posts: 645
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?
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
User avatar
gabrielp
Advanced member
Posts: 645
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
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Post Reply