FilenamePlugin
Defines the plugin to perform evaluation on the lfn name
- class DIRAC.Resources.Catalog.ConditionPlugins.FilenamePlugin.FilenamePlugin(conditions)
Bases:
FCConditionBasePluginThis plugin is to be used when filtering based on the LFN name
- SUPPORTED_METHODS = frozenset({'endswith', 'find', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'startswith'})
- __init__(conditions)
The condition can be any of these methods which evaulate to a boolean:
startswith
endswith
isalnum
isalpha
isdigit
islower
isspace
istitle
isupper
find
(Find strictly doesn’t return a boolean, but it is remapped to one)
It should be written just like if you were calling the python call yourself. For example:
Filename=startswith('/lhcb') Filename=istitle()
- eval(**kwargs)
evaluate the parameters. The lfn argument is mandatory