58 $this->feedsToCheck = array();
60 $res = ResultsTable::getList(array(
61 'filter' => $this->filter
64 while($feed = $res->fetch())
65 $this->feedsToCheck[$feed[
"ID"]] = $feed;
67 $feedData = reset($this->feedsToCheck);
69 if($feedData !==
false)
96 $timeToKeepFiles = 24;
97 $tmpDir = \CTempFile::GetDirectoryName($timeToKeepFiles);
98 CheckDirPath($tmpDir);
100 $sftp = \Bitrix\Sale\TradingPlatform\Ebay\Helper::getSftp($this->siteId);
110 $files = $sftp->getFilesList($remotePath);
117 foreach($files as $file)
119 if(!mb_strstr($file, $feedData[
"FILENAME"]))
122 if($sftp->downloadFile($remotePath.
"/".$file, $tmpDir.$file))
124 $result = file_get_contents($tmpDir.$file);