Call this function to add a sub folder.

syntaxSyntax:
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 codeCopy 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.");
  }
}

See also