Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Nifi Listfile - Exclude Directories

avatar
Expert Contributor

How can I setup the list file processor so that it excludes certain folders? For example if we have the following director

/root/A

/root/B

/root/C

/root/D

How can i exclude folders C and B in the path filter?

Thanks,

Ahmad

1 REPLY 1

avatar

Listfile has the option to define a File Filter and a Path Filter. From your explanation I would expect that you need to define the Path Filter.

In the Path Filter you can place a regular expression (in Java syntax).

For regex there are a lot of resources available, I think something like this should do the trick:

(?!(B|C)).*


- Dennis Jaheruddin

If this answer helped, please mark it as 'solved' and/or if it is valuable for future readers please apply 'kudos'.