Remove use of `fs.access()` in plugins
Fdawgs opened this issue · 0 comments
Fdawgs commented
Prerequisites
-
I have written a descriptive title
-
I have searched existing feature requests to ensure it has not already been proposed
-
I agree to follow the Code of Conduct that this project adheres to
Description
Excessive filesystem call:
// Create temp directory if missing
try {
await fs.access(config.tempDirectory);
} catch (err) {
await fs.mkdir(config.tempDirectory);
}
Just handle any error thrown from fs.mkdir()