Add pack check helper function

This commit is contained in:
eraseyourknees
2022-09-15 16:12:10 +02:00
parent cf57876aca
commit 79730cdd24
2 changed files with 5 additions and 1 deletions

View File

@ -179,3 +179,7 @@ function uupApiReadJson($path) {
function uupApiWriteJson($path, $data) {
return file_put_contents($path, json_encode($data)."\n");
}
function uupApiPacksExist($updateId) {
return file_exists('packs/'.$updateId.'.json.gz');
}