|
|
@ -105,7 +105,7 @@ if ($config->snap->storage->local->enabled) |
|
|
|
{ |
|
|
|
{ |
|
|
|
foreach ((array) scandir($directory) as $filename) |
|
|
|
foreach ((array) scandir($directory) as $filename) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.')) |
|
|
|
if (!str_ends_with($filename, '.tar.gz')) |
|
|
|
{ |
|
|
|
{ |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
@ -164,7 +164,7 @@ foreach ($config->snap->storage->remote->ftp as $i => $ftp) |
|
|
|
|
|
|
|
|
|
|
|
foreach ((array) $remote->nlist($filepath) as $filename) |
|
|
|
foreach ((array) $remote->nlist($filepath) as $filename) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.')) |
|
|
|
if (!str_ends_with($filename, '.tar.gz')) |
|
|
|
{ |
|
|
|
{ |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|