Call this function to add a sub folder.
Syntax: |
---|
DlxFolder.NewFolder(name) |
Parameters
Parameter | Description |
---|---|
name | The folder name. |
Return Value
Returns the object corresponding to the folder. Call the IsValid() method to determine if the folder was created correctly.
Example
Copy code | |
---|---|
var folder = DlxApp.GetJob().GetFolder("folder1");
if (folder.IsValid())
{
if (!folder.NewFolder("folder2").IsValid())
{
throw new Error("An error occurred while creating the folder.");
}
}
|