This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function read_a_file_and_replace_x_with_smilies (filePath) { | |
// Set up a future | |
var fut = new Future(); | |
fs.readFile(filePath, function (err, data) { | |
if (err) fut.return({ error: err }); | |
doImageMani(data, function (err) { | |
if (err) fut.return({ error: err }); | |
// everythings done, no need to return anything |
NewerOlder