IBM / operator-collection-sdk-vscode-extension

IBM Operator Collection SDK extension for VS Code
https://ibm.github.io/operator-collection-sdk/
Apache License 2.0
2 stars 1 forks source link

Fixed issue where fs.readdirSync fails when both recursive and withFileTypes. #151

Open yemi-kelani opened 10 months ago

yemi-kelani commented 10 months ago

Encountered a node.js issue where fs.readdirSync wasn't reliably reading the filesystem after doing a clean install of the vscode extension and running npm install. I'm not sure why I just started encountering this error now but this PR rewrites the getDirectoryContent function to not use recursive with fs.readdirSync and adds error handling to be cautious

I was using node v18.17.1 which is the version others had the issue on https://github.com/nodejs/node/issues/51773

Also allow collection names and namespaces to be initialized with underscores in them _