dan-s1 commented on code in PR #11953:
URL: https://github.com/apache/nifi/pull/11953#discussion_r4669626039
##########
nifi-extension-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/GetHDFSFileInfo.java:
##########
@@ -846,9 +846,8 @@ public void updateTotals(boolean deepUpdate) {
}
for (HDFSObjectInfoDetails c : children) {
- if (c.isSymlink()) {
- continue; //do not count symlinks. they either will be
counted under their actual directories, or won't be count if actual location is
not under provided root for scan.
- } else if (c.isDirectory()) {
+ //do not count symlinks. they either will be counted under
their actual directories, or won't be counted if actual location is not under
provided root for scan.
+ if (c.isDirectory()) {
Review Comment:
@exceptionfactory Would you be okay with
```
if (!c.isSymlink()) {
if (c.isDirectory()) {
if (deepUpdate) {
c.updateTotals(deepUpdate);
}
this.totalLen += c.totalLen;
this.countDirs += c.countDirs;
this.countFiles += c.countFiles;
} else if (c.isFile()) {
this.totalLen += c.getLen();
this.countFiles++;
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]