public function fire()
{
if ($this->isMissingArguments()) {
$this->displayMissingArguments();
$this->promptForMissingArgumentValues();
$this->validateArguments();
}
$filesystem = $this->filesystems->get($this->option('source'));
$contents = $filesystem->listContents($this->option('path'));
$rows = [];
foreach ($contents as $file) {
if ($file['type'] == 'dir') {
continue;
}
$rows[] = [$file['basename'], key_exists('extension', $file) ? $file['extension'] : null, $this->formatBytes($file['size']), date('D j Y H:i:s', $file['timestamp'])];
}
$this->table(['Name', 'Extension', 'Size', 'Created'], $rows);
}