net-ssh/net-scp

# create a directory with scp

dineshPallapa opened this issue · 2 comments

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
scp.session.exec!('mkdir xyz')

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