public function ftpFiles($dir)
    {
        return ($this->isConnected() === true) ? ftp_nlist($this->getConnection(), $dir) : false;
    }
public function ftpFiles($dir)
    {
        return ($this->isConnected() === true) ? ftp_nlist($this->getConnection(), $dir) : false;
    }
public function ftpFiles ( $ dir ) { return ( $ this -> isConnected ( ) === true ) ? ftp_nlist ( $ this -> getConnection ( ) , $ dir ) : false ; }
get the list of files.

@param (string) $dir directory

@since 3.0.0

@return mixed
get the list of files .