mkdir

Creates remote directory.

Advertisement

Syntax

mkdir <directory>

Remarks

XML log element: mkdir

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

Advertisement

maps to following PowerShell code:

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

Last modified: by martin