Jul-03-2022, 08:30 PM
You have two Unicode(Left Double Quotation Mark) in code posted,that will never work and you should get
SyntaxError
before file not found error. >>> Sftp.put(localPath=“C:/Users/sankalp/documents/TestEDI.txt",remotePath=“/Users/authentucation/")
Error: File "<interactive input>", line 1
Sftp.put(localPath=“C:/Users/sankalp/documents/TestEDI.txt",remotePath=“/Users/authentucation/")
^
SyntaxError: invalid character '“' (U+201C)
>>> Sftp.put(localPath="C:/Users/sankalp/documents/TestEDI.txt",remotePath=“/Users/authentucation/")
Error:File "<interactive input>", line 1
Sftp.put(localPath="C:/Users/sankalp/documents/TestEDI.txt",remotePath=“/Users/authentucation/")
^
SyntaxError: invalid character '“' (U+201C)
Sftp.put(localPath="C:/Users/sankalp/documents/TestEDI.txt",remotePath="/Users/authentucation/")
Error:Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'Sftp' is not defined