I have tried put -r directory/*
, which only uploaded the files and not folders. Gave me the error, cannot Couldn't canonicalise
.
Any help would be greatly appreciated.
SFTP Cheat Sheet PDF You should be able to connect to a remote server with SFTP and use commands to transfer files, manage files and directories, and change file permissions.
Getting Multiple Files To download more than one file from the sftp server use the mget command. mget works by expanding each filename listed and running a get command on each file. The files are copied into the local working directory, which can be changed with the lcd command.
For people actually wanting a direct answer to this question (instead of being told to use something other than sftp)...
put -r local/path/to/directoryName
The uploaded directory must already exist in the working directory on the server, so you might need to create it first.
mkdir directoryName
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With