forked from wallabag/wallabag
fix #1154
This commit is contained in:
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user