Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question copy a single file to multiple directories

More
21 May 2015 14:05 #1 by J.M
J.M created the topic: copy a single file to multiple directories
Good morning,
I want to copy a file in 2 differents directories and I wanna know if I could do that with only one “movefiles” or one "copyfiles" !
If yes, what will be the separator between the 2 paths
tkx
More
21 May 2015 16:44 - 21 May 2015 16:45 #2 by Thomas BLETON
Thomas BLETON replied the topic: copy a single file to multiple directories
Hi,
Please see the attached example.
The metadata contains a "dirlist" FileServer which contains 2 directories.
The process contains a FileCopy action.
The FileServer was drag'n'dropped on the FileCopy Action.
The FileCopy action has a "Repetition Query" property such that it will repeat for every directory present in the FileServer "dirlist".
In our example, the action executes 2 times.

I hope this helps ?

This message has an attachment file.
Please log in or register to see it.

Last Edit: 21 May 2015 16:45 by Thomas BLETON.
More
22 May 2015 15:14 #3 by J.M
J.M replied the topic: copy a single file to multiple directories
Hi,
yes, that's what I need
I still have a problem, when I use from Dir the mapping pass but in directory I don't find any file ( knowing that there is 4 files in the source)

and when I use from File, I get an Error 'NullPointerException'
Attachments:
More
22 May 2015 16:50 #4 by Thomas BLETON
Thomas BLETON replied the topic: copy a single file to multiple directories
Please check the FILE_INCLUDES: for example *.xlsx
It seems that your screenshot does not include the wildcard.
More
22 May 2015 17:00 #5 by J.M
J.M replied the topic: copy a single file to multiple directories
Yes, now it works
Thank you