From 1fa69c7003bac49c22721ac694fe399f369ece8a Mon Sep 17 00:00:00 2001 From: w3iBStime Date: Thu, 19 Jun 2014 15:26:53 -0500 Subject: Updating doco for sftp_client.put() Adding a note to indicate that the remotepath should include a filename. --- paramiko/sftp_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index 2ff2d51d..99a29e36 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -564,7 +564,9 @@ class SFTPClient(BaseSFTP): The SFTP operations use pipelining for speed. :param str localpath: the local file to copy - :param str remotepath: the destination path on the SFTP server + :param str remotepath: the destination path on the SFTP server. Note + that the filename should be included. Only specifying a directory + may result in an error. :param callable callback: optional callback function (form: ``func(int, int)``) that accepts the bytes transferred so far and the total bytes to be transferred -- cgit v1.2.3