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