Make --refresh-dependencies work by creating the directory after clearing it (#482)

dev/0.11
shedaniel 2021-08-31 21:54:17 +08:00 committed by GitHub
parent 3ded0964c4
commit 6165576521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -355,6 +355,8 @@ public class MappingsProviderImpl extends DependencyProvider implements Mappings
if (Files.exists(mappingsWorkingDir)) {
Files.walkFileTree(mappingsWorkingDir, new DeletingFileVisitor());
}
Files.createDirectories(mappingsWorkingDir);
} catch (IOException e) {
e.printStackTrace();
}