Run fs.stat on every file in a directory