protected function getFile($file)
{
if ($this->connect())
{
print_r($this->arParams['tmpDir'] . $file);
print_r($file);
print_r($this->connect);
if (\ftp_get($this->connect, $this->arParams['tmpDir'] . $file, $file, FTP_BINARY))
{
return $this->arParams['tmpDir'] . $file;
}
}
return false;
}