| Watch Folders and the Aspera Watch Service |
183
Filter Fields
Each filter object must include values for "type", "pattern", and "rule". Filters are applied in order. Watch Folders
supports glob and Regex filters. The glob filter system is the same as Ascp; see
Using Filters to Include and Exclude
on page 126.
{
...
"filters":[
{
"type":"GLOB",
"pattern":"*.txt",
"rule":"INCLUDE"
},
{
"type":"GLOB",
"pattern":"/**",
"rule":"EXCLUDE"
}
],
...
}
Field
Description
Default
type
The type of filter. Supported filters are
GLOB
and
REGEX
.
N/A
pattern
The filter pattern.
N/A
rule
The rule for the filter. Supported rules are
INCLUDE
and
EXCLUDE
.
Note:
An include rule must be followed by at least one exclude rule,
otherwise all files are transferred because none are excluded. To
exclude all files that do not match the include rule, use
/**
for glob
or
.*
for Regex.
N/A
Packages Fields
Packages values are used to define an order for the transfer queue. For example, if file B depends on file A, file A
must be transferred before File B. Dependencies are defined by package files, where the package file contains the set
of files on which it depends. The package file (by default) is transferred after successfully transferring all the files
defined in the package file
{
...
"packages":{
"timeout":"10s",
"parsers":[
{
"final_transfer":"LIST",
"filters":[
{
"type":"REGEX",
"rule":"INCLUDE",
"pattern":".*\\.txt"
},
{
"type":"REGEX",
"rule":"EXCLUDE",
"pattern":".*"
}
],