Re: Adding single file to recursive folder
Is there any auto create method for this or should I check all folders (&create missing folders) before uploading a file?
Yes, you have to do this yourself.
Is there any auto create method for this or should I check all folders (&create missing folders) before uploading a file?
transferResult = session.PutFiles("C:\test.txt", "/home/myuser/1stfolder/2ndfolder/3rdfolder/test.txt", False, transferOptions)
"Cannot create remote file '/home/myuser/1stfolder/2ndfolder/3rdfolder/test.txt'"
"No such file or directory."
"Error code: 2"
"Error message from server: No such file"