|
|
|
@ -101,7 +101,11 @@ if ($config->snap->storage->local->enabled)
@@ -101,7 +101,11 @@ if ($config->snap->storage->local->enabled)
|
|
|
|
|
$prefix = __DIR__ . '/../../' . $config->snap->storage->local->directory; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
foreach ((array) scandir(sprintf('%s/%s', $prefix, $filepath)) as $filename) |
|
|
|
|
$directory = sprintf('%s/%s', $prefix, $filepath); |
|
|
|
|
|
|
|
|
|
if (is_dir($directory)) |
|
|
|
|
{ |
|
|
|
|
foreach ((array) scandir($directory) as $filename) |
|
|
|
|
{ |
|
|
|
|
if (in_array($filename, ['.', '..'])) |
|
|
|
|
{ |
|
|
|
@ -126,6 +130,7 @@ if ($config->snap->storage->local->enabled)
@@ -126,6 +130,7 @@ if ($config->snap->storage->local->enabled)
|
|
|
|
|
), |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// Remote snaps |
|
|
|
|