Skip to content

Instantly share code, notes, and snippets.

Created January 24, 2016 06:24
What would you like to do?
fs = require('fs');
path = 'data/myfile.txt';
fs.exists(path, function(exists){
console.log('yes file exists...');
} else {
console.log('It doesnt exists');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment