mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-10 16:01:50 -04:00
hopefully fix assets generation
This commit is contained in:
parent
f7e0beb537
commit
198ae51750
@ -282,6 +282,9 @@ public class AssetsManager {
|
||||
// move file to desired destination
|
||||
File outputFile = new File(getAssetDiskPath(hash));
|
||||
Util.createParentFolderIfNotExist(outputFile);
|
||||
if (outputFile.exists()) {
|
||||
return hash;
|
||||
}
|
||||
if (!tempDestinationFile.renameTo(outputFile)) {
|
||||
throw new RuntimeException(String.format("Could not rename file %s to %s", tempDestinationFile.getAbsolutePath(), outputFile.getAbsolutePath()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user