Get Entire Directory In SFTP

To copy a directory from remote computer to local computer:

Use the -r (recursive) flag:

$ get -r directoryname

Source