public function handle($path)
{
$file = $this->filesystem->getFile($path);
$result = ['filename' => $file->getFilename(), 'path' => $file->getPath(), 'fullPath' => $file->getFullPath(), 'extension' => $file->getExtension()];
if ($file instanceof ImageInterface) {
$result['previewUrl'] = $file->thumb(200, 150, 'c');
$result['previewListUrl'] = $file->thumb(60, 40, 'c');
}
try {
$result['url'] = $file->url();
} catch (\Exception $e) {
}
return $result;
}