diff --git a/ci4/app/Libraries/SafekatFtpClient.php b/ci4/app/Libraries/SafekatFtpClient.php index 3b96781e..66fdc29c 100644 --- a/ci4/app/Libraries/SafekatFtpClient.php +++ b/ci4/app/Libraries/SafekatFtpClient.php @@ -66,8 +66,8 @@ class SafekatFtpClient $this->ftp->login(username: $this->username, password: $this->password); foreach ($presupuestoFiles as $key => $value) { $filename = array_reverse(explode("/", $value->file_path))[0]; - $remoteDir = implode("/", [$this->base_dir,$rootIdExtern]); - $remoteFile = implode("/", [$this->base_dir,$rootIdExtern,$filename]); + $remoteDir = implode("/", [$this->base_dir,"pedidos_files",$rootIdExtern]); + $remoteFile = implode("/", [$this->base_dir,"pedidos_files",$rootIdExtern,$filename]); if(!$this->ftp->is_dir($remoteDir)){ $this->ftp->mkdir($remoteDir,recursive:true); }