When the wallet directory doesn't exist, the app crashes with a ENOENT error:
{ [Error: ENOENT: no such file or directory, open '/Users/eduardoboucas/Sites/api-wrapper/.wallet/token.http-localhost3014.worker.json']
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/eduardoboucas/Sites/api-wrapper/.wallet/token.http-localhost3014.worker.json' }
We need to ensure the directory is created at runtime.
When the wallet directory doesn't exist, the app crashes with a
ENOENT
error:We need to ensure the directory is created at runtime.