def _fn(self, base, resource_name): if resource_name: return os.path.join(base, *resource_name.split('/')) return base