• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/fileman_utils.php
  • Класс: CFilemanUtilDir
  • Вызов: CFilemanUtilDir::Start
public function Start($dir = false)
{
	if ($dir)
		$this->dir = str_replace('\','/',$dir);

	$io = CBXVirtualIo::GetInstance();

	if ($io->DirectoryExists($this->dir))
	{
		if ($this->Recursion($this->dir))
		{
			if ($this->startPath && !$this->bFound)
			{
				$this->err[] = 'Error: start path not found!';
				return false;
			}
			return true;
		}
		return false;
	}

	$r = $this->CallMethod($this->callBack, $this->dir);
	if ($r === false)
		$this->err[] = 'Error on entry: '.$this->dir;

	return $r;
}