def split_file_path(full_file_path: str, dir_separator: str = '/') -> list:
    """ Splits the filepath at the last `dir_separator` to extract the
    filepath and the filename.

    Example:
        Input:  '/path/to/file.ext'
        Output: ['/path/to/', 'file.ext']

    Arguments:
        full_file_path: A full file path.
        dir_separator (optional): Directory separator.

    Returns:
        List consisting of filepath and filename.

    """
    if dir_separator not in full_file_path:
        return ['.', full_file_path]
    return full_file_path.rsplit(f'{dir_separator}', 1)