net-ssh / net-scp

Pure Ruby implementation of the SCP protocol
http://github.com/delano/net-scp
MIT License
154 stars 63 forks source link

# create a directory with scp #40

Closed dineshPallapa closed 1 year ago

dineshPallapa commented 6 years ago

I am trying create a directory in my remote location.

Is their any command equivalent in scp as sftp.

# create a directory
sftp.mkdir! "/path/to/directory"

Hope, Get some response. Thanks!

9mm commented 4 years ago
scp.session.exec!('mkdir xyz')
mfazekas commented 1 year ago

Yep either use sftp or create dir with remote command, or just recursive copy and empty directory.