public function scanDir($directory = '.', $recursive = false)
    {
        return $this->parseRawList($this->rawlist($directory, $recursive));
    }
public function scanDir($directory = '.', $recursive = false)
    {
        return $this->parseRawList($this->rawlist($directory, $recursive));
    }
public function scanDir ( $ directory = '.' , $ recursive = false ) { return $ this -> parseRawList ( $ this -> rawlist ( $ directory , $ recursive ) ) ; }
Scan a directory and returns the details of each item.

@see FtpClient::nlist()
@see FtpClient::rawlist()
@see FtpClient::parseRawList()
@see FtpClient::dirSize()
@param  string $directory
@param  bool   $recursive
@return array
Scan a directory and returns the details of each item .