Published
- 1 min read
fs dir exists
The solution for this is noted below
fs dir exists
Solution
import fs from 'fs'
if (fs.existsSync(path)) {
// Do something
}
Try other methods by searching on the site. That is if this doesn’t work
Published
- 1 min read
The solution for this is noted below
import fs from 'fs'
if (fs.existsSync(path)) {
// Do something
}
Try other methods by searching on the site. That is if this doesn’t work