diff --git a/app/Console/Commands/SyncFtpFiles.php b/app/Console/Commands/SyncFtpFiles.php new file mode 100644 index 00000000..e74408a1 --- /dev/null +++ b/app/Console/Commands/SyncFtpFiles.php @@ -0,0 +1,57 @@ +setTimeout(null); + $process->run(); + + if (!$process->isSuccessful()) { + $this->error($process->getErrorOutput()); + + return self::FAILURE; + } + + $this->info('FTP synchronization completed successfully.'); + + return self::SUCCESS; + } +}