The OpenPGP Action, the Copy/Move Action, and the File Name Conditions support the use of wildcards. This is useful for Event Rules that batch process groups of files. Standard Windows/DOS format wildcards are used, such as *.file extension, search term .???, search term ?.*, *.*, and so on. This functionality is particularly useful with the Timer event.
In the OpenPGP Action configuration dialog, the File to Process field supports wildcards. Each matching file is acted upon according to the Action definition.
In the File Copy Options dialog box, the Source path field on the Target File tab supports wildcards.
When a wildcard is specified here, the Destination path field specifies the target folder to which each matching file is moved or copied. The files moved or copied into the destination file are given the same name as the files from the source.
Example
Source:
c:\test\*.txt
Destination:
/%FS.FILENAME%
Here, each "*.txt" file that is uploaded goes to "/", with a matching file name. Note that the destination file name is not overwritten.
If the source of an Action is specified as a wildcard without any path information, the path defaults to the folder with the Event Rule that triggered this Action (for example, there is a "%FS.PATH%" variable for an On Upload event.) If there is no folder like that available - for example, if the event is an On Timer event - the current working directory of the application is set as the source of the wildcard patterns. Typically, that is the installation directory of the application.
When you define a wildcard in the source path for a copy/move Action and the protocol type is set to Local (Local Files or LAN), EFT Server respects Windows path syntax:
Source:
c:\Work\Today\*.*
Destination:
g:\Backup\Work\Today\
You can also use \\Work, if appropriate.
The Destination Path (Upload event target file as:) ignores any path information you enter after the trailing backslash. So if you type:
g:\Backup\Work\Today
EFT Server disregards "Today" and executes the move/copy into:
g:\Backup\Work\.
Test an Event Rule using a wildcard before you deploy it to ensure it works as expected and does not cause any unwanted behavior. For example, if you do not define the source path appropriately when a wildcard is used, it is possible to set up an Action that moves all the files out of a user's c:\windows directory, which is most likely an undesired result. |