mkdir

This task creates one or multiple directories on the device. If a directory path is specified, the task will create all parent directories that don’t exist.

Note that the copy task creates all directories automatically so this task does not need to be explicitly invoked.

Use nested dir elements to create multiple unrelated directories. All directories will be created as part of a single SOMA request to the device.

Attributes/Options

Name

Description

Required

dir

A directory or a path to create.

Could include a filesystem which is defined using filesystem:/ syntax. If not provided, the filesystem will default to local:/.

Yes

dir Nested Element

Name

Description

Required

path

A directory or a path.

Could include a filesystem which is defined using filesystem:/ syntax. If not provided, the filesystem will default to local:/.

Yes

Examples

dpbuddy mkdir -dir="/dir1/dir2"
<dp:mkdir dir="/dir1/dir2/dir3"/>