var path = require('path');
path.exists('foo.txt', function(exists) {
if (exists) {
// do something
}
});
И это все в цикле, правильно?
Vladislav
John
Anonymous
0xVoushi
Sasha