From 0dbf5c64de986b5042b15c9806f86922bcc3bee8 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 24 Nov 2026 09:08:09 +0530 Subject: [PATCH] Added sync ftp files command page --- app/Console/Commands/SyncFtpFiles.php | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 app/Console/Commands/SyncFtpFiles.php 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; + } +}