node.js how to set root path for api code example Example: nodejs fs root folder path global.__basedir = __dirname;