ropensci / ssh

Native SSH client in R based on libssh
https://docs.ropensci.org/ssh
Other
127 stars 21 forks source link

Error when uploading a file via scp_upload() #10

Closed KonstantinHoffmann closed 5 years ago

KonstantinHoffmann commented 6 years ago

When I upload some files via scp_upload() everything works fine, but I always get an error message in the end:

Error in scp_upload(session, files, to = "/some/path/") : Failed to open file FALSE

The files are uploaded nonetheless, just this message appears every time

jeroen commented 6 years ago

Can you show a traceback() about where this error occurs?

KonstantinHoffmann commented 6 years ago
> scp_upload(session, "~/tmp", to="/data/users/hoffmann")
Error in scp_upload(session, "~/tmp", to = "/data/users/hoffmann") : 
  Failed to open file FALSE
> traceback()
2: .Call(C_scp_write_recursive, session, info$local, info$size, 
       info$path, to, verbose)
1: scp_upload(session, "~/tmp", to = "/data/users/hoffmann")
jeroen commented 6 years ago

I can't reproduce this. Can you explain, is ~/tmp a file or directory, and is /data/users/hoffmann an existing directory on the server?

It would be very helpful if you can try to create an example I can reproduce locally, i.e. upload a file or directory that you create in R and use a standard target to upload (e.g. inside /tmp/ on the server).

jeroen commented 5 years ago

Still cannot reproduce this. If anyone can show an example, please open a new issue.