UXP accessing files and folders

See my thread here for a working example of using fs.readdir().
Worth noting that you also need to grant fullAccess permission for local in your manifest.