fs.js: add folder fix some bugs