public function ls($dir = ".", $full = false, $recursive = false) {
		$this->connectIfNeeded();
		return $this->handle->ls($dir, $full, $recursive);
	}
public function ls($dir = ".", $full = false, $recursive = false) {
		$this->connectIfNeeded();
		return $this->handle->ls($dir, $full, $recursive);
	}
public function ls ( $ dir = "." , $ full = false , $ recursive = false ) { $ this -> connectIfNeeded ( ) ; return $ this -> handle -> ls ( $ dir , $ full , $ recursive ) ; }
Returns list of files in the given directory.

@param string    $dir           The directory to be listed.
This parameter can also include arguments, eg. $ftp->ls("-la /your/dir");
Note that this parameter isn't escaped so there may be some issues with filenames containing spaces and other characters.
@param string    $full          List full dir description.
@param string    $recursive     Recursively list folder content

@return FtpFile[] Array containing list of files.
Returns list of files in the given directory .