# create a directory with scp
dineshPallapa opened this issue · 2 comments
dineshPallapa commented
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')
mfazekas commented
Yep either use sftp or create dir with remote command, or just recursive copy and empty directory.