public function getType($path) { try { return $this->fs->getMetadata($path)['type']; } catch (Error $ex) { } catch (Exception $ex) { } throw new ReadException("File {$path} type could not be determined.", $ex); }