def METHOD_NAME(self, slug, version, access_policy, klass):
    if access_policy:
        return os.path.join(klass.PROTECTED_FILE_ROOT, slug)
    else:
        return os.path.join(klass.PUBLIC_FILE_ROOT, slug)