node path to get root folder code example Example: nodejs fs root folder path global.__basedir = __dirname;