Closed ric-evans closed 3 years ago
Introduces support for shortcut/base request arguments:
"directory"
"filename"
{"directory": "/foo/bar"}
["/foo/bar/ham.i3", "/foo/bar/green.i3", "/foo/bar/eggs/ham.i3"]
{"directory": "/foo/bar", "filename": "ham.i3"}
["/foo/bar/ham.i3", "/foo/bar/eggs/ham.i3"]
{"filename": "ham.i3"}
["/foo/bar/ham.i3", "/foo/bar/eggs/ham.i3", "/beef/pork/ham.i3"]
"path"
"logical_name"
"path-regex"
"query"
closes https://github.com/WIPACrepo/file_catalog/issues/77
~Tests TBD~
Update: Now tested
Introduces support for shortcut/base request arguments:
"directory"
and/or"filename"
{"directory": "/foo/bar"}
->["/foo/bar/ham.i3", "/foo/bar/green.i3", "/foo/bar/eggs/ham.i3"]
{"directory": "/foo/bar", "filename": "ham.i3"}
->["/foo/bar/ham.i3", "/foo/bar/eggs/ham.i3"]
{"filename": "ham.i3"}
->["/foo/bar/ham.i3", "/foo/bar/eggs/ham.i3", "/beef/pork/ham.i3"]
"path"
"logical_name"
)"path-regex"
NOTE: With the exception of
"directory"
&"filename"
, these arguments are mutually exclusiveOrder of precedence (decreasing):
"directory"
&"filename"
"logical_name"
"path"
"path-regex"
"logical_name"
sub-field within the"query"
dictcloses https://github.com/WIPACrepo/file_catalog/issues/77