parse_filename
- Collocations.parse_filename(filename, template=None)
Parse the filename with temporal and additional regular expressions.
This method uses the standard temporal placeholders which might be overwritten by the user-defined placeholders.
- Parameters:
filename – Path and name of the file.
template – Template with regex/placeholders that should be used. Default is FileSet.path.
- Returns:
A dictionary with filled placeholders.