public function getMimetype($path) { try { return $this->fs->getMimetype($path); } catch (Error $ex) { } catch (Exception $ex) { } throw new ReadException("File {$path} mimetype could not be determined.", $ex); }