try { dirs = FS.readdir(rootpath); } catch (err) { return; }