• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/virtual_io_filesystem.php
  • Класс: CBXVirtualDirectoryFileSystem
  • Вызов: CBXVirtualDirectoryFileSystem::IsEmpty
public function IsEmpty()
{
	if ($this->IsExists())
	{
		if ($handle = opendir($this->GetPathWithNameEncoded()))
		{
			while (($file = readdir($handle)) !== false)
			{
				if ($file != "." && $file != "..")
				{
					closedir($handle);
					return false;
				}
			}
			closedir($handle);
		}
	}
	return true;
}