fs: how do I locate a parent folder? October 8, 2022 by Tarik Try this: fs.readFile(__dirname + '/../../foo.bar'); Note the forward slash at the beginning of the relative path.