I use nested folder for my bases, but when I try to run the rarity tool I get a scandir error because the path is wrong. It somehow omits the base parent folder.
Changing useRootTraitType makes no difference.
Example below, the correct path should be '/Users/XXX/Desktop/XXX/Art Engine/layers/Base/Base-1#15/Eyes/'
Error: ENOENT: no such file or directory, scandir '/Users/XXX/Desktop/XXX/Art Engine/layers/Base-1#15/Eyes/'
at Object.readdirSync (node:fs:1450:3)
at getElements (/Users/XXX/Desktop/XXX/Art Engine/src/main.js:149:6)
at /Users/XXX/Desktop/XXX/Art Engine/utils/rarityData.js:80:20
at Array.forEach ()
at /Users/XXX/Desktop/XXX/Art Engine/utils/rarityData.js:77:13
at Array.forEach ()
at Object. (/Users/XXX/Desktop/XXX/Art Engine/utils/rarityData.js:33:21)
at Module._compile (node:internal/modules/cjs/loader:1112:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Users/XXX/Desktop/XXX/Art Engine/layers/Base-1#15/Eyes/'
}
I use nested folder for my bases, but when I try to run the rarity tool I get a scandir error because the path is wrong. It somehow omits the base parent folder.
Changing useRootTraitType makes no difference.
Example below, the correct path should be '/Users/XXX/Desktop/XXX/Art Engine/layers/Base/Base-1#15/Eyes/'
/Users/XXX/Desktop/XXX/Art Engine/src/config.js node:internal/fs/utils:347 throw err; ^
Error: ENOENT: no such file or directory, scandir '/Users/XXX/Desktop/XXX/Art Engine/layers/Base-1#15/Eyes/' at Object.readdirSync (node:fs:1450:3) at getElements (/Users/XXX/Desktop/XXX/Art Engine/src/main.js:149:6) at /Users/XXX/Desktop/XXX/Art Engine/utils/rarityData.js:80:20 at Array.forEach ()
at /Users/XXX/Desktop/XXX/Art Engine/utils/rarityData.js:77:13
at Array.forEach ()
at Object. (/Users/XXX/Desktop/XXX/Art Engine/utils/rarityData.js:33:21)
at Module._compile (node:internal/modules/cjs/loader:1112:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Users/XXX/Desktop/XXX/Art Engine/layers/Base-1#15/Eyes/'
}
Node.js v18.4.0