Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fs verify path

const fs = require('fs');
const path = './file.txt';
if (!fs.existsSync(path)) {
	return ('this path dosn't exist');
} else {
	return true;
}
 
PREVIOUS NEXT
Tagged: #fs #verify #path
ADD COMMENT
Topic
Name
9+5 =