code: function (path) {
          return new Promise((resolve, reject) => {
              fs.access(path, fs.constants.F_OK, (err) => {
                  if (err === null) {
                      resolve(true);
                  }
                  else if (err.code === 'ENOENT') {
                      resolve(false);
                  }
                  else {
                      reject(err);
                  }
              });
          });
      }
docs: Does `path` exist on the filesystem?