get_info

FileSet.get_info(file_info, retrieve_via=None)[source]

Get information about a file.

How the information will be retrieved is defined by

Parameters
  • file_info – A string, path-alike object or a FileInfo object.

  • retrieve_via – Defines how further information about the file will be retrieved (e.g. time coverage). Possible options are filename, handler or both. Default is the value of the info_via parameter during initialization of this FileSet object. If this is filename, the placeholders in the file’s path will be parsed to obtain information. If this is handler, the get_info() method is used. If this is both, both options will be executed but the information from the file handler overwrites conflicting information from the filename.

Returns

A FileInfo() object.