set_delete_empty_folders

Determines whether to delete the empty subdirectories.

Member of namespace

mvscan

Syntax

bool set_delete_empty_folders (bool bParam)

Parameters

bParam
Type: bool

Parameters

bParam : A Boolean value that enables or disables deleting sub-folders if they are empty. The root folder specified for ingestion is never deleted. Subfolders are only deleted if both this setting and tree mode are enabled.

True: Delete subfolders of the main ingestion folder if they are empty. This is the default if the action is not called.

False: Leave empty subfolders intact.

Returns

Always True.

Level

Batch level.

Details

Use this action prior to calling scan to configure the deletion of empty input subdirectories. If tree mode is not enabled, this setting has no effect.
Example:
set_types("tif")
set_min_age("10")
set_tree_mode(True)
set_delete_empty_folders(False)
scan()