WIP caching system for Modrinth/CurseForge pack export

This commit is contained in:
comp500
2022-05-18 16:02:40 +01:00
parent 3a6109c1f9
commit 30bc6d81bb
5 changed files with 405 additions and 1 deletions

View File

@@ -44,3 +44,11 @@ func GetPackwizInstallBinFile() (string, error) {
}
return filepath.Join(binPath, exeName), nil
}
func GetPackwizCache() (string, error) {
localStore, err := GetPackwizLocalStore()
if err != nil {
return "", err
}
return filepath.Join(localStore, "cache"), nil
}