foxes.utils.DataBook.get_file_path(context, file_name, check_raw=True, errors=True)[source]

Get path of a file

Parameters

context: str

The context

file_name: str

The file name

check_raw: bool

Check if file_name exists as given, and in that case return the path

errors: bool

Flag for raising KeyError, otherwise return None, if context of file_name not found

Returns

path: pathlib.Path

The path