HADOOP-17683. Update commons-io to 2.8.0 (#2974)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Akira Ajisaka <aajisaka@apache.org> Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
parent
c80f07422f
commit
29105ffb63
@ -249,7 +249,7 @@ commons-cli:commons-cli:1.2
|
||||
commons-codec:commons-codec:1.11
|
||||
commons-collections:commons-collections:3.2.2
|
||||
commons-daemon:commons-daemon:1.0.13
|
||||
commons-io:commons-io:2.5
|
||||
commons-io:commons-io:2.8.0
|
||||
commons-lang:commons-lang:2.6
|
||||
commons-logging:commons-logging:1.1.3
|
||||
commons-net:commons-net:3.6
|
||||
|
@ -604,18 +604,12 @@ public static long getDU(File dir) {
|
||||
return dir.length();
|
||||
} else {
|
||||
File[] allFiles = dir.listFiles();
|
||||
if(allFiles != null) {
|
||||
for (int i = 0; i < allFiles.length; i++) {
|
||||
boolean isSymLink;
|
||||
try {
|
||||
isSymLink = org.apache.commons.io.FileUtils.isSymlink(allFiles[i]);
|
||||
} catch(IOException ioe) {
|
||||
isSymLink = true;
|
||||
}
|
||||
if(!isSymLink) {
|
||||
size += getDU(allFiles[i]);
|
||||
}
|
||||
}
|
||||
if (allFiles != null) {
|
||||
for (File f : allFiles) {
|
||||
if (!org.apache.commons.io.FileUtils.isSymlink(f)) {
|
||||
size += getDU(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
@ -119,7 +119,7 @@
|
||||
<commons-collections.version>3.2.2</commons-collections.version>
|
||||
<commons-compress.version>1.19</commons-compress.version>
|
||||
<commons-csv.version>1.0</commons-csv.version>
|
||||
<commons-io.version>2.5</commons-io.version>
|
||||
<commons-io.version>2.8.0</commons-io.version>
|
||||
<commons-lang3.version>3.7</commons-lang3.version>
|
||||
<commons-logging.version>1.1.3</commons-logging.version>
|
||||
<commons-logging-api.version>1.1</commons-logging-api.version>
|
||||
|
Loading…
Reference in New Issue
Block a user