ropensci / ssh

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

How do I preserve the mode permission of a file with scp_upload #65

Closed yli110-stat697 closed 1 year ago

yli110-stat697 commented 1 year ago

Hi,

When I am using the scp_upload function, it changed my file permission from 770 to 650 on the remote server. I tried the scp -p in terminal and I was able to preserve the mode, but scp_upload doesn't seem to have such an argument to preserve the mode permission?

jeroen commented 1 year ago

I have made a change that tries to retain the file persmissions. Can you try again? You can install the latest version from https://ropensci.r-universe.dev/ssh