Defines the plugin to perform evaluation on the lfn name

class DIRAC.Resources.Catalog.ConditionPlugins.FilenamePlugin.FilenamePlugin(conditions)

Bases: DIRAC.Resources.Catalog.ConditionPlugins.FCConditionBasePlugin.FCConditionBasePlugin

This plugin is to be used when filtering based on the LFN name

the condition can be any method of the python string object that can be evaluated

as True or False:

  • endswith
  • find
  • isalnum
  • isalpha
  • isdigit
  • islower
  • isspace
  • istitle
  • isupper
  • startswith

It should be written just like if you were calling the python call yourself. For example:

Filename=startswith(‘/lhcb’) Filename=istitle()

evaluate the parameters. The lfn argument is mandatory