adding a root file into node project using fs code example Example: nodejs fs root folder path global.__basedir = __dirname;