more file system function for node.js