• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/ui/uploader/file.php
  • Класс: BitrixMainUIUploaderFile
  • Вызов: File::deleteCache
static function deleteCache(Package $package, array $file)
{
	$hash = self::initHash($file);
	if (FileInputUtility::instance()->checkFile($package->getCid(), $hash))
	{
		$file = CBXVirtualIo::GetInstance()->GetFile($package->getPath().$hash."/.log");
		if ($file->IsExists())
			$file->unlink();
		FileInputUtility::instance()->unRegisterFile($package->getCid(), $hash);
	}
}