Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fs dir exists

import fs from 'fs'

if (fs.existsSync(path)) {
    // Do something
}
 
PREVIOUS NEXT
Tagged: #fs #dir #exists
ADD COMMENT
Topic
Name
3+6 =