Skip to main content

I used the reader ( directory and path file name ) and writer ( file copy ) to move all file from folder A to folder B, is there a way we could move also the subfolder in A to B and keep, instead of creating a reader for each subfolder

is it possible to write it a zip file

all this is used to backup data

Thanks

If the destination on the File Copy Writer has an extension .zip, the writer will zip the files on the destination.

You could also use the reader to read all folders and then construct the files to copy by adding \\*.* to the folder names. This would be the source for the Copy writer. The destination would be <foldername>.zip

Hope this helps.


The writer has parameters to copy subfolders, too:

And to zip them, as @erik_jan has told you, just click on the yellow icon:


@oscard @erik_jan

Thanks for your response, that's exactly what I did but it didn't work still taking only the file located inside the folder and no subfolder, attached the workspace filecopy.fmw,

sample


@oscard @erik_jan

Thanks for your response, that's exactly what I did but it didn't work still taking only the file located inside the folder and no subfolder, attached the workspace filecopy.fmw,

sample

OK. Let's see.

 

 

Could you test the following changes?

 

 

- For the Reader:

 

 

 

 

- In your AttributeManager you are deleting the file extension. Try this:

 

 

@Value(path_filename)_@DateTimeFormat(@DateTimeNow(),%d %B %Y-%H h %M mn).@Value(path_extension)

Reply