check_file_exists

check_file_exists(file_name='sic_soc_llm_config.toml')

Check if the file exists.

If relative path provided it will look for the file in these locations: 1. relative to the current working directory 2. ralative to project root directory 3. relative to user’s home directory 4. relative to the package resources

Parameters

Name Type Description Default
file_name Path or str The name of the file to check. Defaults to config file name. 'sic_soc_llm_config.toml'

Returns

Type Description
Path The absolute path to the file if it exists, None otherwise.