Skip to content

Commit

Permalink
Fix an issue where test files were not deleted on MacOSX/Swift, leadi…
Browse files Browse the repository at this point in the history
…ng to disk space issues on further CI builds
  • Loading branch information
ericvergnaud committed Feb 3, 2021
1 parent f7b4100 commit a60c32d
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -149,7 +149,11 @@ public static void eraseDirectory(File dir) {
public static void eraseFilesInDir(File dir) {
String[] files = dir.list();
for(int i = 0; files!=null && i < files.length; i++) {
new File(dir,files[i]).delete();
File file = new File(dir,files[i]);
if(file.isDirectory())
eraseDirectory(file);
else
file.delete();
}
}

Expand Down

0 comments on commit a60c32d

Please sign in to comment.