summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/repository.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/rest/repository.php')
-rw-r--r--admin/WebConsole/rest/repository.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/WebConsole/rest/repository.php b/admin/WebConsole/rest/repository.php
index e5ce76bd..3acb4230 100644
--- a/admin/WebConsole/rest/repository.php
+++ b/admin/WebConsole/rest/repository.php
@@ -97,6 +97,13 @@ $app->get('/repository/images(/)', 'validateRepositoryApiKey',
$response['images'][$i]['size'] = @stat($file)['size'];
$response['images'][$i]['modified'] = date("Y-m-d H:i:s", @stat($file)['mtime']);
$response['images'][$i]['mode'] = substr(decoct(@stat($file)['mode']), -4);
+ $backupfile = $file.".ant";
+ if (file_exists($backupfile)) {
+ $response['images'][$i]['backedup'] = true;
+ $response['images'][$i]['backupsize'] = @stat($backupfile)['size'];
+ } else {
+ $response['images'][$i]['backedup'] = false;
+ }
}
// Complete image in OUs information.
for ($j=0; $j<sizeof(@$response['ous']); $j++) {