mkdir

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Built-in Functions > /system/filesystem >

mkdir

Full path: /system/filesystem/mkdir

 

Creates a directory at the specified path.

 

This function returns Boolean TRUE if execution was successful. If the job execution fails, the outcome depends on the value of the Abort on error parameter, as follows:

 

If the Abort on error parameter is TRUE (default value), the job execution is aborted. In this case, you can still handle errors by means of protected blocks (see Handling Step Errors).
If the Abort on error parameter is FALSE, the function returns FALSE.

 

Parameters

Name

Type

Description

Path

string as directory

The path of the new directory.

Make parents

boolean

Select this check box to create a hierarchical path like c:\dir1\dir2\dir3 in one step.

Abort on error

boolean

This Boolean parameter determines what should be the return value of the function if the job fails. If Abort on error is FALSE, the function will return Boolean FALSE as well. If Abort on error is TRUE, the job execution is aborted. The default value is TRUE.

Working directory

string as directory

Specifies the working directory (for example, c:\somedirectory). If relative paths are used, they will be resolved against the working directory.

 

Examples

If Working-Directory is c:\temp, and Path is temp2\temp3, the function creates the new directory c:\temp\temp2\temp3.


© 2019 Altova GmbH