fix : change and fix SyncService

This commit is contained in:
SajjadMahmoody
2026-04-18 00:53:44 +03:30
parent 7e8aa185ab
commit ea82f5968e
3 changed files with 38 additions and 26 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ private function transferFilesViaFtp(array $changes, string $side, array &$repor
continue;
}
@ftp_mkdir($ftp, $remoteFolder);
if (ftp_put($ftp, $remoteFile, $localFile, FTP_BINARY)) {
if (@ftp_put($ftp, $remoteFile, $localFile, FTP_BINARY)) {
$report[] = "فایل [{$filePath}] ارسال شد (FTP) ✓";
} else {
$report[] = "فایل [{$filePath}] ارسال نشد (FTP) ✗";
@@ -185,7 +185,7 @@ private function transferFilesViaFtp(array $changes, string $side, array &$repor
if (! is_dir($localFolder)) {
mkdir($localFolder, 0755, true);
}
if (ftp_get($ftp, $localFile, $remoteFile, FTP_BINARY)) {
if (@ftp_get($ftp, $localFile, $remoteFile, FTP_BINARY)) {
$report[] = "فایل [{$filePath}] دریافت شد (FTP) ✓";
} else {
$report[] = "فایل [{$filePath}] دریافت نشد (FTP) ✗";