NIFI-4631 attempted to do something similar but had issues when running against CIFS mounts, reportedly. However, I think the issue was not the use necessarily of NIO.2 but the way in which it was used. It attempted to use walkTree and did did not appear to follow symlinks. As a result, this caused failures in some scenarios. We should look at using NIO.2 and probably obtain a Stream<Path>.