update fileStat()
This commit is contained in:
parent
742e731e96
commit
77f6770333
@ -133,10 +133,8 @@ export default class llamacpp_extension extends AIEngine {
|
|||||||
// otherwise, look into subdirectories
|
// otherwise, look into subdirectories
|
||||||
const children = await fs.readdirSync(currentDir)
|
const children = await fs.readdirSync(currentDir)
|
||||||
for (const child of children) {
|
for (const child of children) {
|
||||||
// NOTE: currently fs.fileStat() output is a string
|
|
||||||
// TODO: fix this in core
|
|
||||||
// skip files
|
// skip files
|
||||||
const dirInfo = await fs.fileStat(child).then(JSON.parse)
|
const dirInfo = await fs.fileStat(child)
|
||||||
if (!dirInfo.isDirectory) {
|
if (!dirInfo.isDirectory) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user