We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0850166 + 36e15d1 commit 0ee29ceCopy full SHA for 0ee29ce
src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -1736,8 +1736,7 @@ public static BigInteger sizeOfDirectoryAsBigInteger(final Path directory) throw
1736
return countDirectoryAsBigInteger(directory).getByteCounter().getBigInteger();
1737
}
1738
1739
- private static Path stripTrailingSeparator(final Path path) {
1740
- final Path dir = path.normalize();
+ private static Path stripTrailingSeparator(final Path dir) {
1741
final String separator = dir.getFileSystem().getSeparator();
1742
final String fileName = getFileNameString(dir);
1743
return fileName != null && fileName.endsWith(separator) ? dir.resolveSibling(fileName.substring(0, fileName.length() - 1)) : dir;
0 commit comments