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 a5819a1 commit 0acfaceCopy full SHA for 0acface
javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java
@@ -498,12 +498,9 @@ public int run() throws IOException {
498
// ensuring that the finalize steps detects that no code was seen.
499
Path srcFolder = Paths.get(EnvironmentVariables.getWipDatabase(), "src");
500
try {
501
- // Non-recursive delete because "src/" should be empty.
502
- FileUtil8.delete(srcFolder);
+ FileUtil8.recursiveDelete(srcFolder);
503
} catch (NoSuchFileException e) {
504
Exceptions.ignore(e, "the directory did not exist");
505
- } catch (DirectoryNotEmptyException e) {
506
- Exceptions.ignore(e, "just leave the directory if it is not empty");
507
}
508
return 0;
509
0 commit comments