Skip to main content
Question

Zipping a file but not creating a folder inside the zip

  • July 17, 2019
  • 3 replies
  • 41 views

oliver.morris
Contributor
Forum|alt.badge.img+14

Hi, I pull down a file from s3, zip it then upload it to s3 again.

When I use the zip archiver it adds the file to a folder and zips up the folder which has the same name as the file.

This is a little of a pain when extracting. Is there anyway to zip just the file without having a folder.

Many Thanks

Oliver

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 305 replies
  • July 23, 2019

When I use the ZipArchiver there is no extra folder created when I archive a file. Are you copying a folder and/or are you using FME server?


nathanatsafe
Safer
Forum|alt.badge.img+9
  • Safer
  • 284 replies
  • July 23, 2019

Hi @olivermorris,

Depending on your workflow and output format you could potentially make use of a fanout expression. Take a look at this FME Evangelist tweet for more info. A dataset fanout should write zipped files into an unzipped directory.

 

Hope this helps,

 

Nathan

oliver.morris
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 176 replies
  • July 23, 2019

thank you both, turns out the new s3 connector tricked me with folder vs filename. It is now working without creating a folder. Thanks but this was as usual user error!

Oliver