[
https://issues.apache.org/jira/browse/NIFI-8755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17509288#comment-17509288
]
Mike Thomsen commented on NIFI-8755:
------------------------------------
I think you can accomplish this with EL, DuplicateFlowfile and UpdateAttribute.
DuplicateFlowfile provides a copy.index attibute, and you can use
UpdateAttribute to execute a large EL statement that sets a path variable based
on the copy.index value. So if you need 5 copies, just have DuplicateFlowfile
copy the file 4 times and you'll have the original + 4 copies each with
copy.index on them.
> Create same file in multiple directories using PutFile
> -------------------------------------------------------
>
> Key: NIFI-8755
> URL: https://issues.apache.org/jira/browse/NIFI-8755
> Project: Apache NiFi
> Issue Type: Wish
> Reporter: Sanghavi
> Priority: Major
> Labels: Enhancement
>
> It would be nice to provide an ability to store the incoming flowfile in
> multiple directories (Paths separated by a demarcator, which can be included
> as a property).
> When we need to store the same copy in different directories, the above setup
> will help to avoid usage of that many number of PutFile processors.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)