Closed nd0ut closed 1 year ago
Fixes a bug where code fails when there are spaces in the node path:
❯ cw node:fs:1451 handleErrorFromBinding(ctx); ^ Error: ENOENT: no such file or directory, scandir '/Users/nd0ut/Library/Application%20Support/fnm/node-versions/v18.13.0/installation/lib/node_modules/@yerofey/cryptowallet-cli/src/chains/' at readdirSync (node:fs:1451:3) at filesList (file:///Users/nd0ut/Library/Application%20Support/fnm/node-versions/v18.13.0/installation/lib/node_modules/@yerofey/cryptowallet-cli/src/utils.js:8:10) at file:///Users/nd0ut/Library/Application%20Support/fnm/node-versions/v18.13.0/installation/lib/node_modules/@yerofey/cryptowallet-cli/src/utils.js:38:1 at ModuleJob.run (node:internal/modules/esm/module_job:194:25) { errno: -2, syscall: 'scandir', code: 'ENOENT', path: '/Users/nd0ut/Library/Application%20Support/fnm/node-versions/v18.13.0/installation/lib/node_modules/@yerofey/cryptowallet-cli/src/chains/' } Node.js v18.13.0
Thanks @nd0ut !
Fixes a bug where code fails when there are spaces in the node path: