I need to download lot of files from blob storage and zip/compress those files. Since the files size is large (> 2GB), Here is what I am doing.
- Create a dir at %APPDTA%\mytmp.
- Download files from the blob storage to above dir.
- Execute Powershell.exe -executionpolicy remotesigned Compress-Archive -Path srcDir -DestinationPath %APPDTA%\mytmp\myZip.zip
- All of the above commands were successful and no errors. But myZip.zip is missing and java code is throwing java.nio.file.NoSuchFileException: D:\local\AppData\mytmp\myZip.zip
On local windows 10 box above code works fine.
I am not sure what is going on. Any help is appreciated.
Environment: Java 8, Tomcat, PoerShell version 1.4.0