fix : change and fix SyncService
This commit is contained in:
@@ -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) ✗";
|
||||
|
||||
Reference in New Issue
Block a user