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

This commit is contained in:
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

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();
}