0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

allow for creating folders on remote

This commit is contained in:
Zack Scholl 2019-04-03 21:45:08 -07:00
parent 4c0c16cddb
commit f74816c7c7
2 changed files with 71 additions and 13 deletions

View file

@ -15,7 +15,12 @@ func main() {
panic(err)
}
if sender {
err = c.Send("test.txt")
err = c.Send(croc.TransferOptions{
// PathToFile: "../wskeystore/README.md",
// PathToFile: "./src/croc/croc.go",
PathToFile: "C:\\Users\\zacks\\go\\src\\github.com\\schollz\\croc\\src\\croc\\croc.go",
KeepPathInRemote: false,
})
} else {
err = c.Receive()
}