mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 21:15:57 +03:00
fix(app): derive directory names from listed paths (#49122)
This commit is contained in:
committed by
GitHub
Unverified
parent
a5b3802ca3
commit
73e7b7bc79
@@ -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,
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user