Lines Matching refs:file
60 return fs.readdirSync(directory).map(function (file) { argument
61 return path.join(directory, file);
62 }).filter(function (file) { argument
63 return fs.statSync(file).isFile();
64 }).filter(function (file) { argument
65 return path.extname(file).toLowerCase() == ".html";
73 files.forEach(function (file) argument
75 var originalName = path.basename(file);
77 var directory = path.dirname(file);
80 fs.renameSync(file, directory + "/" + newFileName); //, function(err)
102 files.forEach(function (file) argument
105 data = fs.readFileSync(file, 'ascii');
117 fs.writeFile(file, data, 'ascii', function (err) {
123 console.log('Renamed links in: %s', file);