ftp_rawlist

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns a detailed list of files in the given directory
<?php ftp_rawlist(FTP\Connection $ftp, string $directory, bool $recursive = false): array|false
<?php     function ftp_rawlist(...$arguments)

    {

        if ( ! is_mocked('ftp_rawlist')) {

            return \ftp_rawlist(...$arguments);

        }



        return return_mocked_value('ftp_rawlist');
<?php             $path = $this->escapePath($path);

        }



        return ftp_rawlist($connection, $options . ' ' . $path, stripos($options, 'R') !== false) ?: [];

    }



    public function move(string $source, string $destination, Config $config): void
<?php     public function isConnected($connection): bool

    {

        return $connection !== false && @ftp_rawlist($connection, './') !== false;

    }

}