7 __Description__ : Create a directory if it doesn't exist, return a new JSZip
8 object with the new folder as root.
10 See also [the `dir` option of file()]({{site.baseurl}}/documentation/api_jszip/file_data.html).
14 name | type | description
15 -----|--------|------------
16 name | string | the name of the directory.
18 __Returns__ : A new JSZip (for chaining), with the new folder as root.
22 <!-- __Complexity__ : **O(1)** -->
28 zip.folder("css").file("style.css", "body {background: #FF0000}");
29 // or specify an absolute path (using forward slashes)
30 zip.file("css/font.css", "body {font-family: sans-serif}")
32 // result : images/, css/, css/style.css, css/font.css