cdms2.fvariable:FileVariable

FileVariable.getFilePath(matchnames, template)

Lookup or generate the file path, depending on whether a filemap or template is present.