• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/file.php
  • Класс: CWebDavFile
  • Вызов: CWebDavFile::IsTrashEmpty
function IsTrashEmpty()
{
	$io = self::GetIo();
	$trashSectionPath = $this->GetMetaID('TRASH');
	$status = true;
	$realTrashPath = $io->CombinePath($this->real_path_full, $trashSectionPath);
	if ($io->DirectoryExists($realTrashPath))
	{
		$oDir = $io->GetDirectory($realTrashPath);

		$arChildren = $oDir->GetChildren();
		$status = (sizeof($arChildren) <= 0);
	}
	return $status;
}