Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
@Override
public FileVisitResult postVisitDirectory(Path dir, IOException exc)
throws IOException {
if (exc != null) {
throw exc;
}
// Do not delete directories on Windows as deletes are not executed immediately,
// but they do result in an IO exception the next time we try to access a directory in
// pending-deletion state. Leaving directories empty is good enough for DSBulk anyway,
Expand All @@ -111,7 +114,8 @@ public FileVisitResult postVisitDirectory(Path dir, IOException exc)
return FileVisitResult.CONTINUE;
}
});
} catch (IOException ignored) {
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}

Expand Down