You are not logged in.
Hi, is it possible to tWaitForFile react when file with same name is provided in directory to scan?
For example, if in directory to scan someone put a file with name 20120530.jpg and after some period put file with same name, tWaitForFile will not react.
Yes, it should trigger correctly if you select the appropriate value in the Trigger Action When property.
From Component Reference Guide:
Trigger action when Select the condition to be met for the action to be carried
out: A file is created A file is deleted A file is updated A file is created or updated or deleted.
There is also an option for Trigger Action when "a file is created, updated, or deleted"
Hi Edward, thank you for your answer.
Scenario is like this:
File is provided to directory -> tWaitForFile triggered action -> File is sent on mail -> File is moved to another directory
Now, problem is that if you provide a file with same name that was previously triggered tWaitForFile it wont be processed.
indeed tWaitForFile remembets processed files, so a file is processed only once.If you want to receive other events, set the switch "Trigger action when" tp "a file is created, updated or deleted". You will receive other events too (you can filter out what you need e.g. create or update)
To test, don't use "the same" file, at least update (touch) it, so update is recognized
Hi Gabriel, setting "Trigger action when" property to "a file is created or updated or deleted" indeed is a kind of solution, but problem is that tWaitForFile will trigger action in deleting a file as well as in file creating which may much complicate programs.
Indeed that's why I wrote to filter other events, e.g. using tFilterRow to get create and update events and throw out deletes if there are not useful..