calculateFolderSizeInner($path, $entry, true); } } /** * @param string $file * @return ICacheEntry */ public function get($file) { $data = parent::get($file); if ($file === '' or $file === '/') { // only the size of the "files" dir counts $filesData = parent::get('files'); if (isset($filesData['size'])) { $data['size'] = $filesData['size']; } } return $data; } }