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

@ -16,7 +16,7 @@ limitations under the License.
*/
function uupApiVersion() {
return '1.38.0';
return '1.39.0-dev';
}
require_once dirname(__FILE__).'/auths.php';

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