Skip to content Skip to sidebar Skip to footer

Moving File In Sftp Server Using Python Throws Exception

I have successfully connected to the SFTP server and can download files. But when I try to move a file from one location to another in my SFTP location, I get file already exist er

Solution 1:

The error response I get doesn't provide detail info about the actual issue.

I solved this issue , by adding '/' to the source file.

eg: serverConn.rename('/'+newFile, newpath)

Post a Comment for "Moving File In Sftp Server Using Python Throws Exception"