summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-09-05 11:42:27 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-09-05 11:42:27 -0700
commitb2323505b0a3e22d37a30ecdab9624bd086726e6 (patch)
tree5653026999bb22bd88277c070273c137793a6331
parent4134f7c5950373158c33c0e265b59a1dc92d428f (diff)
Make read ahead kwarg a bit less verbose
-rw-r--r--paramiko/sftp_client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py
index ee25aa6a..d3b95933 100644
--- a/paramiko/sftp_client.py
+++ b/paramiko/sftp_client.py
@@ -196,14 +196,14 @@ class SFTPClient(BaseSFTP):
self._request(CMD_CLOSE, handle)
return filelist
- def listdir_iter(self, path='.', read_ahead_requests=50):
+ def listdir_iter(self, path='.', read_aheads=50):
"""
Generator version of `.listdir_attr`.
See the API docs for `.listdir_attr` for overall details.
This function adds one more kwarg on top of `.listdir_attr`:
- ``read_ahead_requests``, an integer controlling how many
+ ``read_aheads``, an integer controlling how many
``SSH_FXP_READDIR`` requests are made to the server. The default of 50
should suffice for most file listings as each request/response cycle
may contain multiple files (dependant on server implementation.)
@@ -226,7 +226,7 @@ class SFTPClient(BaseSFTP):
# responses later on Section 6.7 of the SSH file transfer RFC
# explains this
# http://filezilla-project.org/specs/draft-ietf-secsh-filexfer-02.txt
- for i in range(read_ahead_requests):
+ for i in range(read_aheads):
num = self._async_request(type(None), CMD_READDIR, handle)
nums.append(num)