Maybe I am using this incorrectly but the output zip file does not work as expected.
It will appear empty when opened in windows explorer, but if you open it with say, 7-zip you can see that the entire path is inside the zip so you have to browse to the files.
so the result is this
but open in 7-zip
and you have to go into each folder until you get to the files
So is this normal? it doesnt seem like it is... when you open it, it should show the files in the root of the zip.
That looks like a bug. Thanks for highlighting the issue.
I figured it was. Thanks Adrian!
With further consideration it looks like the node may be working (mostly) as expected as the SourcePath is a directory. However there appears to be an issue that the node is creating a directory with an blank name at the root of the archive (as indicated by the double backslash in the path displayed in 7z).
I think it would be good to have an enhancement to allow the root of the archive file to correspond with the source directory as this would allow the archived files to appear correctly when using the Windows compressed (zipped) folder utility. I have raised an enhancement request for this option (ref. LAE-25825)
I think it would also be nice to have an option to include (or not) the path in the zip. Where if you choose to not include it, when you open the zip it would be at the files, instead of the base folder of the path...