def get_filepath(resource_id):
    """
    Returns the path to the location of the file associated with
    the resource with the given resource ID.
    """
    return '/var/lib/ckan/default/resources/' + resource_id[0:3
        ] + '/' + resource_id[3:6] + '/' + resource_id[6:]
