Implements fs.makeTree() and fs.removeTree()