def _get_filepath_components(filepath):
    """
    Splits filepath to return (path, filename)
    """
    components = filepath.rsplit("/", 1)
    if len(components) == 1:
        return (None, components[0])
    return (components[0], components[1])