set_min_age
Specifies minimum age of file since last modified.
Member of namespace
mvscanSyntax
bool set_min_age (int nSecs)Parameters
- nSecs
- Type: integer
Number of seconds to wait after file modified before ingesting.
Returns
Always True.Level
Batch level.Details
This setting can be used to prevent premature ingestion of a file which may be incomplete. For example, a network scanner or multifunction device might create the image file and write contents over a period of time, rather than all at once. In that case ingesting the file immediately could cause errors, whereas waiting for 5 or 10 seconds would provide sufficient time for the file to be completed. If required, the appropriate value must be determined experimentally. If tree mode is enabled, all files in a given folder must meet the minimum age before any file from that folder is ingested. This allows you to keep files written to a subfolder in the same batch. To override this behavior and check the age of files individually in tree mode, set_wait_time to zero.For this action to take effect, it must be called before the Scan action.
- Example:
-
set_types("tif") set_min_age("10") scan()