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 inkeysandkeys_kwargsthe latter takes priority.
Notes
Missing
keysare replaced with"*".- Raises:
ValueError – if more or less than one path is found.