mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
fix #1154
This commit is contained in:
parent
3d2b9e2e23
commit
f5618feb73
3 changed files with 13 additions and 8 deletions
|
@ -392,8 +392,11 @@ final class Tools
|
|||
);
|
||||
|
||||
foreach ($files as $fileInfo) {
|
||||
$todo = ($fileInfo->isDir() ? 'rmdir' : 'unlink');
|
||||
$todo($fileInfo->getRealPath());
|
||||
$filename = $fileInfo->getFilename();
|
||||
if (!$filename[0] == '.') {
|
||||
$todo = ($fileInfo->isDir() ? 'rmdir' : 'unlink');
|
||||
$todo($fileInfo->getRealPath());
|
||||
}
|
||||
}
|
||||
|
||||
Tools::logm('empty cache');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue