Add pack check helper function

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

No files matched your search

+4
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');
}