protected function getDropFolderFilesFromPhysicalFolder() { if ($this->fileTransferMgr->fileExists($this->dropFolder->path)) { $physicalFiles = $this->fileTransferMgr->listFileObjects($this->dropFolder->path); if ($physicalFiles) { KalturaLog::log('Found [' . count($physicalFiles) . '] in the folder'); } else { KalturaLog::info('No physical files found for drop folder id [' . $this->dropFolder->id . '] with path [' . $this->dropFolder->path . ']'); $physicalFiles = array(); } } else { throw new kFileTransferMgrException('Drop folder path not valid [' . $this->dropFolder->path . ']', kFileTransferMgrException::remotePathNotValid); } KalturaLog::info("physical files: "); foreach ($physicalFiles as &$currlFile) { KalturaLog::info(print_r($currlFile, true)); } return $physicalFiles; }