Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question copy a single file to multiple directories

More
21 May 2015 14:05 #1 by J.M
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
Replied by Thomas BLETON on 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
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
Replied by Thomas BLETON on 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
Yes, now it works
Thank you