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