public function printTree($int = 0) {
		try {
			$signs = "";
			for ($i = 0; $i <= $int; $i++) {
				$signs .= "   ";
			}
			$signs .= "---";
			echo $this->getName() . PHP_EOL;

			foreach ($this->listContents(false) as $value) {
				echo $signs . $value->getName() . PHP_EOL;
				if ($value->isDirectory()) {
					$value->printTree($int++);
				}
			}
		} catch (DirectoryNotFoundException $e) {
		}
	}
public function printTree($int = 0) {
		try {
			$signs = "";
			for ($i = 0; $i <= $int; $i++) {
				$signs .= "   ";
			}
			$signs .= "---";
			echo $this->getName() . PHP_EOL;

			foreach ($this->listContents(false) as $value) {
				echo $signs . $value->getName() . PHP_EOL;
				if ($value->isDirectory()) {
					$value->printTree($int++);
				}
			}
		} catch (DirectoryNotFoundException $e) {
		}
	}
public function printTree ( $ int = 0 ) { try { $ signs = "" ; for ( $ i = 0 ; $ i <= $ int ; $ i ++ ) { $ signs .= "   " ; } $ signs .= "---" ; echo $ this -> getName ( ) . PHP_EOL ; foreach ( $ this -> listContents ( false ) as $ value ) { echo $ signs . $ value -> getName ( ) . PHP_EOL ; if ( $ value -> isDirectory ( ) ) { $ value -> printTree ( $ int ++ ) ; } } } catch ( DirectoryNotFoundException $ e ) { } }
print a file tree

@param int $int recursions number
print a file tree