Skip to main content
Question

Copy entire folder from A to B destination

  • January 18, 2018
  • 4 replies
  • 189 views

boubcher
Contributor
Forum|alt.badge.img+11

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

4 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • January 18, 2018

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.


oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • January 18, 2018

The writer has parameters to copy subfolders, too:

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


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • January 19, 2018

@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
Influencer
Forum|alt.badge.img+21
  • Influencer
  • January 19, 2018
boubcher wrote:

@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)

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings