I am trying to use
ssh2_scp_recv($connection, '/remote/directory', '/local/directory');
to get a remote directory, but I am getting the error:
Warning: ssh2_scp_recv(): Unable to receive remote file in /some-php-file.php on line 2.
It works if I use ssh2_scp_recv to get a single file.
Is this function supposed to work on directories? It wasn't clear from reading the docs.