def file_parts(filepath: str):
    """Separate the filename and file extension from file path"""
    f_sep = filepath.rsplit('.', 1)
    f_name = f_sep[0]
    f_ext = f_sep[1] if len(f_sep) > 1 else ''
    return f_name, f_ext