option('dir') ?? 'dist'); if (!file_exists($localPath) || !is_dir($localPath)) { $this->warn(sprintf('The directory %s does not exists.', $path)); return 1; } $edgePath = sprintf('/%s', config('bunny.storage.username')); if ($this->option('dry-run')) { $this->warn('⚠ Dry run is activated. The operations are displayed but not executed.'); } try { $fileCompare->compare($localPath, $edgePath, [ CompareOptions::START => $start, CompareOptions::NO_LOCK_VERIFICATION => $this->option('no-lock-verification'), CompareOptions::NO_LOCK_GENERATION => $this->option('no-lock-generation'), CompareOptions::LOCK_FILE => $this->option('lock-file'), CompareOptions::DRY_RUN => $this->option('dry-run'), ]); } catch (FilesystemException $exception) { $this->error($exception->getMessage()); return 2; } return 0; } }