Mercurial > eldonilo > avatar
changeset 14:7fdae201c1e2
Don’t exit if the data directory is missing.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 03 Jun 2011 23:25:25 +0200 |
parents | 38ddd5888b8d |
children | 6689cc444617 |
files | avatar.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/avatar.js +++ b/avatar.js @@ -208,9 +208,9 @@ var showImage = function(jid, res) { return; } -fs.readdir('data', function(err, files) { +fs.readdir(config.directory, function(err, files) { if (err) - process.exit('1'); + return fs.mkdir(config.directory, 488); // Actually 0750 for (var i in files) { var tab = /(.*)\.([a-z]{3})/.exec(files[i]);