nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject A question to copy files to other folders
Date Wed, 28 Feb 2018 12:00:03 GMT
Hi, team,

I'm writing a data flow template to copy files from directory A to other 
two directories B and C

There are sub directories under A and I need to copy all files under those 
sub directories to the same
palce under B and C e.g. copy a file A/foo/a.txt to B/foo/a.txt and 

I tried processors 'GetFile' and 'PutFile', but PutFile doesn't support 
creating sub directories under B and C
(i.e. B/foo and C/foo in above example).

The 'GetFile' processor saves the relative path 'foo' in the 'PATH' 
attribute of flowfile. But the 'PutFile' doesn't use it
to create.

I don't want to create those folders manually and create data flow by 
using 'GetFile' --> 'PutFile' for each folder because there
will be too many data flows.

Is there any processor that support creating folder and copying files?




This email message may contain confidential and/or privileged information. 
If you are not the intended recipient, please do not read, save, forward, 
disclose or copy the contents of this email or open any file attached to 
this email. We will be grateful if you could advise the sender immediately 
by replying this email, and delete this email and any attachment or links 
to this email completely and immediately from your computer system. 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message