Question

Zipping a file but not creating a folder inside the zip


Badge +10

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

 


3 replies

Userlevel 1
Badge +18

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?

Badge +7

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
Badge +10

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

Reply