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.

Details

If tree mode is not enabled, this setting has no effect. For this action to take effect, it must be called before the Scan action.
Example:
set_types("tif")
set_min_age("10")
set_tree_mode(True)
set_delete_empty_folders(False)
scan()