Added functions so document root folders can be created recursively.