Add the generator version of fs.stat