Avoid opening dirs as files
nfroidure opened this issue · 3 comments
nfroidure commented
Doing this on my blog:
reachable-urls contents/**
⠋ Checking files(node:19427) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EISDIR: illegal operation on a directory, read
⠸ Checking files
⠧ Checking files^C
Fails since your program try to open dirs as files. You should use an option to not list dirs whith your glob dependency. Something like that: https://github.com/nfroidure/metapak/blob/master/src/assets.js#L54
The above errro led to: #1
1000ch commented
Definitely.
nfroidure commented
Thanks