|
|
@ -67,12 +67,8 @@ var getMetadataAtPath = function (Env, path, _cb) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, Util.mkAsync(_cb)));
|
|
|
|
}, Util.mkAsync(_cb)));
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
// stream creation emit errors... probably ENOENT
|
|
|
|
// stream creation can throw... probably ENOENT
|
|
|
|
stream = Fs.createReadStream(path, { encoding: 'utf8' }).on('error', cb);
|
|
|
|
stream = Fs.createReadStream(path, { encoding: 'utf8' });
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
|
|
return void cb(err);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// stream lines
|
|
|
|
// stream lines
|
|
|
|
const rl = Readline.createInterface({
|
|
|
|
const rl = Readline.createInterface({
|
|
|
|