public function getSize($path) { try { $size = $this->fs->getSize($path); return $size === false ? 0 : $size; } catch (Error $ex) { } catch (Exception $ex) { } throw new ReadException("File {$path} size could not be determined.", $ex); }