nw-model-miner icon indicating copy to clipboard operation
nw-model-miner copied to clipboard

Glob will alway return empty array

Open jonkas2211 opened this issue 3 years ago • 1 comments

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');

jonkas2211 avatar Oct 09 '21 11:10 jonkas2211

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.

Kattoor avatar Nov 04 '21 08:11 Kattoor