Create Directory

Operation Name

Create Directory

Function overview

Create a new directory.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required/Optional Use of Variables Description Remarks
Name Required Not available Enter the name on the script canvas.  
Required settings
Item name Required/Optional Use of Variables Description Remarks
Directory name Required Available Enter the name of the directory to create.  
Create at Required Available Enter the directory to create a new directory in.

Click [Browse] button to activate the file Selectr and Select the directory.
Create parent directory when it doesn't exist Optional Not available Select whether to create a parent directory parent directory does not exist.
  • [Checked]:
    Create a parent directory.
  • [Not Checked]: (default)
    Do not create a parent directory. If there is no parent directory, FileOperationException is thrown.
 
Create option
Item name Required/Optional Use of Variables Description Remarks
Error when directory already exists Optional Not available If the [Directory] already exists, select whether to raise error.
  • [Checked]: (default)
    Raise error.
  • [Not Checked]:
    No errors.
 
Comment
Item name Required/Optional Use of Variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Schema

Input Schema

None.

Output Schema

None.

Transaction

Transaction is not supported.

PSP Usage

PSP is not supported.

Available Component variables

Variable name Description Remarks
success Wither success or failure of the process is stored.
  • The value defaults to null.
  • If successful the operation is true, returns false if it fails.
message_category Stroes the category to which corresponding message code belongs to, when an error occurs.
  • The value defaults to null.
message_code Stores its corresponding message code of occured error.
  • The value defaults to null.
message_level Stores the severity of the corresponding message code of the occured error.
  • The value defaults to null.
error_type Stores the type of the occured error.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on DataSpider Servista version.
error_message Stores the error message for the occured error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version.
error_trace Stores stack trace of the occurred error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version or the client application used.

Specification Limits

None.

Main exceptions

Exception name Cause Solution
InvalidPropertyConfigurationException
<Property name> is not specified.
[<Property name>] is not specified. Specify the [<Property name>].
FileOperationException
The specified directory is not found.
The directory specified in the [Create at] is not found. And the [Create parent directory when it doesn't exist] is not checked. Please check the directory specified in [Create at].
FileOperationException
The specified directory not found.
The directory specified in the [Directory name] already exists.Also, [Error when directory already exists] is checked. Check the directory specified in the [Directory name].
PathIsNotAbsoluteException The specified path is a relative path. The path only accepts an absolute path. Specify an absolute path for the [Create at].