Function treeMatchTypeFromString
Get symbolic constant of tree match type according to the string.
Returns
TreeMatch
for passed string, or TreeMatch
if type name is unknown.
Example
assert(treeMatchTypeFromString("file") == TreeMatch .Type .file);
assert(treeMatchTypeFromString("directory") == TreeMatch .Type .directory);
assert(treeMatchTypeFromString("link") == TreeMatch .Type .link);
assert(treeMatchTypeFromString("") == TreeMatch .Type .any);