Skip to content

Commit 96ca444

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pycatfile.py
1 parent 449571d commit 96ca444

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pycatfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9488,7 +9488,7 @@ def upload_file_to_sftp_file(sftpfile, url):
94889488
if(haveparamiko):
94899489
def upload_file_to_sftp_string(sftpstring, url):
94909490
sftpfileo = BytesIO(sftpstring)
9491-
sftpfile = upload_file_to_sftp_files(ftpfileo, url)
9491+
sftpfile = upload_file_to_sftp_files(sftpfileo, url)
94929492
sftpfileo.close()
94939493
return sftpfile
94949494
else:
@@ -9548,7 +9548,7 @@ def download_file_from_pysftp_string(url):
95489548
sftpfile = download_file_from_pysftp_file(url)
95499549
return sftpfile.read()
95509550
else:
9551-
def download_file_from_pyftp_string(url):
9551+
def download_file_from_pysftp_string(url):
95529552
return False
95539553

95549554
if(havepysftp):
@@ -9601,11 +9601,11 @@ def upload_file_to_pysftp_file(sftpfile, url):
96019601
if(havepysftp):
96029602
def upload_file_to_pysftp_string(sftpstring, url):
96039603
sftpfileo = BytesIO(sftpstring)
9604-
sftpfile = upload_file_to_pysftp_files(ftpfileo, url)
9604+
sftpfile = upload_file_to_pysftp_file(ftpfileo, url)
96059605
sftpfileo.close()
96069606
return sftpfile
96079607
else:
9608-
def upload_file_to_pysftp_string(url):
9608+
def upload_file_to_pysftp_string(sftpstring, url):
96099609
return False
96109610

96119611

0 commit comments

Comments
 (0)