mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 11:55:52 -04:00
update
This commit is contained in:
parent
70c4559ee4
commit
2efea1ab08
@ -200,6 +200,7 @@ public class DefaultCacheRepository extends CacheRepository {
|
|||||||
private void saveIndex() {
|
private void saveIndex() {
|
||||||
if (indexFile == null || index == null) return;
|
if (indexFile == null || index == null) return;
|
||||||
try {
|
try {
|
||||||
|
Files.createDirectories(indexFile.getParent());
|
||||||
JsonUtils.writeToJsonFile(indexFile, index);
|
JsonUtils.writeToJsonFile(indexFile, index);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.error("Unable to save index.json", e);
|
LOG.error("Unable to save index.json", e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user