}
if (i === segments.length) {
// just find all prompt files in the provided location
return { searchRoot: location };
}
const parent = location.with({ path: segments.slice(0, i).join('/') });
if (i === segments.length - 1 && segments[i] === '*' || segments[i] === ``) {