fix(app): derive directory names from listed paths (#49122)

This commit is contained in:
Chris Yang
2026-09-17 17:46:07 +09:00
committed by GitHub
Unverified
parent a5b3802ca3
commit 73e7b7bc79
+1 -1
View File
@@ -77,7 +77,7 @@ export const { use: useFile, provider: FileProvider } = createSimpleContext({
serverSDK.api.file.list({ path: dir, location: { directory: scope() } }).then((x) =>
x.data.map((entry) => ({
...entry,
name: entry.path.split("/").at(-1) ?? entry.path,
name: getFilename(entry.path),
absolute: `${scope()}/${entry.path}`,
ignored: false,
})),