Kattoor / nw-model-miner

27 stars 5 forks source link

Glob will alway return empty array #2

Open jonkas2211 opened 2 years ago

jonkas2211 commented 2 years ago

I have the problem, that the glob will always return an empty array of string.

nw-model-miner.mjs const pakFilePaths = await globby(assetsPath + '/**/*.pak');

Kattoor commented 2 years ago

Does replacing it with the following work for you?

const pakFilePaths =
    (await globby('**/*.pak', {cwd: assetsPath}))
        .map(path => `${assetsPath}/${path}`);

Sorry for the late reply.