mkdir - Create directories on the remote server in SFTP

You can create directory/folder in remote server programmatically by the SFTP.

Syntax:
psftp> mkdir 'Directory name'


Example:
psftp> pwd
current remote working directory is /home/user1
psftp> mkdir ForgetCode
psftp>


New directory called ForgetCode will be created in /home/user1 path after executing the above code.