72 $dbFiles = FileTable::getList([
75 '%ORIGINAL_NAME' => self::WEBPACK_NAME_MASK,
76 '=MODULE_ID' => self::MODULE_ID,
79 while ($row = $dbFiles->fetch())
81 $fileIds[] = (int)$row[
'ID'];
85 $fileIdsInRecycleBin = array_map(
92 $dbLandingFiles = Landing\Internals\FileTable::getList([
93 'select' => [
'FILE_ID'],
95 'FILE_ID' => array_merge($fileIds, $fileIdsInRecycleBin),
98 while ($row = $dbLandingFiles->fetch())
100 $landingFileIds[] = abs($row[
'FILE_ID']);
103 $this->filesToDelete = array_diff($fileIds, array_unique($landingFileIds));