Skip to content

check_file_existence

Checks if a file exists at the specified path.

Parameters:

Name Type Description Default
complete_file_path str

The full file path to check.

required

Returns:

Type Description
bool

True if the file exists, False otherwise.

Source code in tinybig/util/utility.py
def check_file_existence(complete_file_path):
    """
    Checks if a file exists at the specified path.

    Parameters
    ----------
    complete_file_path : str
        The full file path to check.

    Returns
    -------
    bool
        True if the file exists, False otherwise.
    """
    return os.path.exists(complete_file_path)