<!-- Setting the path to monitor on the input item -->
<arc:set attr="input.path" value="/tmp/timesensitive" />
<!-- Enabling recursion to check all subdirectories within the input path -->
<arc:set attr="input.recurse" value="true" />
<!-- Checking for files only, across all directories found by the operation -->
<arc:set attr="input.fileordir" value="files" />
<!-- Calling the operation and passing in the input item and setting an output item -->
<arc:call op="fileListDir" in="input" out="result" >
<!-- Executing an expression that checks each file creation date in each directory -->
<arc:if exp="[result.file:ctime | dateadd('day', 1) | datediff | lessthan(0)]" >
<!-- If it is older than 1 day, log an entry in the application log -->
<!-- This can be expanded to add more logic such as sending an email using appSendEmail -->
<arc:set attr="_log.info" value="The file [result.file:name] located at [result.file:fullname] has been idle within [input.path] for longer than 1 day." />
</arc:if>
</arc:call>