Creates a directory in the specified path.

1 file.mkdir

<file.mkdir>
    <file /> !
</file.mkdir>
Example

Creates a directory in a specified path.

Copy
<xsql-script name='file_mkdir_sample1'>
    <body>
        <set name='m_directory'>
            <string>c:<file.separator />tmp<file.separator />destination</string>
        </set>
        <println>Name of the directory to create: <m_directory/></println>
        <set name='m_result'>
            <file.mkdir>
                <file name='#m_directory' type='absolute' />
            </file.mkdir>
        </set>
        <if>
            <expr>
                <eq>
                    <m_result/>
                    1
                </eq>
            </expr>
            <then>
                <set name='m_word'>exito</set>
            </then>
            <else>
                <set name='m_word'>fracaso</set>
            </else>
        </if>
        <println>Result of the creation: <m_word/></println>
    </body>
</xsql-script>