Until now we could get the absolute path of a file to open later as readStream with this code snippet:
var base = path.resolve(\'.\'); var file = base + \'/d
For Meteor 0.8.3,
__meteor_bootstrap__.serverDir gives out the working directory, when run in server mode.
__meteor_bootstrap__.serverDir
example
if (Meteor.isServer) { console.log(__meteor_bootstrap__.serverDir); }