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.
1 parent 3ca0590 commit a8b3ae6Copy full SHA for a8b3ae6
1 file changed
src/main/java/org/apache/commons/io/FileUtils.java
@@ -2195,7 +2195,7 @@ public static Collection<File> listFilesAndDirs(
2195
* @see File#mkdirs()
2196
*/
2197
private static File mkdirs(final File directory) throws IOException {
2198
- if ((directory != null) && (!directory.mkdirs() && !directory.isDirectory())) {
+ if (directory != null && !directory.mkdirs() && !directory.isDirectory()) {
2199
throw new IOException("Cannot create directory '" + directory + "'.");
2200
}
2201
return directory;
0 commit comments