src/Folder.php
public function content($dots = true) {
		$content = scandir($this->path);
		foreach($content as $file) {
			if($dots == false) {
				if((strcmp($file, ".") == 0) or (strcmp($file, "..") == 0)) {
					continue;
				}
			}
			echo "<a href='".$this->path."/".$file."'>".$file."</a><br>";
		}
	}
public function content($dots = true) {
		$content = scandir($this->path);
		foreach($content as $file) {
			if($dots == false) {
				if((strcmp($file, ".") == 0) or (strcmp($file, "..") == 0)) {
					continue;
				}
			}
			echo "<a href='".$this->path."/".$file."'>".$file."</a><br>";
		}
	}
public function content ( $ dots = true ) { $ content = scandir ( $ this -> path ) ; foreach ( $ content as $ file ) { if ( $ dots == false ) { if ( ( strcmp ( $ file , "." ) == 0 ) or ( strcmp ( $ file , ".." ) == 0 ) ) { continue ; } } echo "<a href='" . $ this -> path . "/" . $ file . "'>" . $ file . "</a><br>" ; } }
Prints content of folder.
@param bool $dots True if show dots, false otherwise.
Prints content of folder .