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