public function search(string $word) {
		$index   = $this->addFilter(new Search($word));
		$content = $this->listContents(true);
		$this->removeFilter($index);

		return $content;
	}
public function search(string $word) {
		$index   = $this->addFilter(new Search($word));
		$content = $this->listContents(true);
		$this->removeFilter($index);

		return $content;
	}
public function search ( string $ word ) { $ index = $ this -> addFilter ( new Search ( $ word ) ) ; $ content = $ this -> listContents ( true ) ; $ this -> removeFilter ( $ index ) ; return $ content ; }
search for files which contains given string in their name

@param string $word

@return File[]
@throws DirectoryNotFoundException
search for files which contains given string in their name