What is the Meteor server-side path to /public?
问题 On the Meteor client-side, I know that files in the project's public directory are referenced at '/'. How are they referenced on the server-side? I am trying to get a directory listing with fs.readdir, but I don't know how to construct the path to get to the server side equivalent of the client side '/images/gallery'. Any advice? 回答1: When I use the fs-module I just use './public' for my public folder, works fine on my local install. And then I set it to whatever's correct at the production