Hi,
I am trying to ZIP few files present in a directory C:\\temp\*.txt and one file created by map.
So i have used the below mapping rule.
PUT("ZIP","MEMORY,C:\temp\test.zip,C:\temp\*.txt abc.txt",PACKAGE(abc))--not working, zip file created but without any content in it.
However i have changed the above rule by replacing MEMORY with FILE
PUT("ZIP","FILE,C:\temp\test.zip,C:\temp\*.csv abc.txt",PACKAGE(abc))--not working,i am getting file abc.txt not found exception
i have placed the output file from map to a directory C:\temp\ and then use the below rule.
PUT("ZIP","FILE,C:\temp\test.zip,C:\temp\*.csv C:\temp\abc.txt"," ")--this is working but zip has temp as directory name.
PUT("ZIP","FILE,C:\temp\test.zip,C:\temp\abc.txt,FLAT"," ")-archive file has directory structure
As per the ZIP adapter document, if FLAT parameter is specified then only the file name is used in the archive but i could see directory name is also present.
is there any way to zip files from a directory and a file from the same map with the archive has only the files not the directory.
example--C:\temp\--this directory has a.txt,b.txt and map produce c.txt so the C:\temp\test.zip file would have a.txt,b.txt,c.txt not like temp\a.txt,b.txt,c.txt
Please share your thoughts.
Thanks in advance for your help and time.
------------------------------
Santanu Baral
------------------------------