filefisher.FileFinder.find_single_path

filefisher.FileFinder.find_single_path#

FileFinder.find_single_path(keys=None, **keys_kwargs)#

find exactly one path in the file system using the path pattern

Parameters:
  • keys (dict) – Dictionary containing keys to create the search pattern.

  • **keys_kwargs ({key: indexer, …}, optional) – The keyword arguments form of keys. When the same key is passed in keys and keys_kwargs the latter takes priority.

Notes

Missing keys are replaced with "*".

Raises:

ValueError – if more or less than one path is found.