mkdir

Creates remote directory.

Syntax

mkdir <directory>

Remarks

XML log element: mkdir

Advertisement

Example

mkdir public_html

Converting to .NET Assembly

When converting script to .NET Assembly, map mkdir command to Session.CreateDirectory method.

Parameters mapping: Command parameter directory maps to method parameter path. You have to convert relative path to absolute path.

For example, following script snippet:

cd /home/martinp
mkdir private

maps to following PowerShell code:

$session.CreateDirectory("/home/martinp/private")