| |
| scriptlog:lib:core:hzip [2026/09/26 09:09] – admin admin | scriptlog:lib:core:hzip [2026/09/26 09:16] (current) – admin admin |
|---|
| ======= Methods (2) ======= | ======= Methods (2) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | private static | ''folderToZip()'' | Add files and sub-directories in a folder to zip file. | 24 | | | private static | ''folderToZip()'' | Add files and sub-directories in a folder to zip file. | 24 | |
| | public static | ''zipDir()'' | Zip a folder (include itself). | 52 | | | public static | ''zipDir()'' | Zip a folder (include itself). | 52 | |
| |
| |
| Add files and sub-directories in a folder to zip file. | Add files and sub-directories in a folder to zip file. |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$folder'' | ''(untyped)'' | //required// | //none// | | | ''$folder'' | ''(untyped)'' | //required// | //none// | |
| | ''$zipFile (by reference)'' | ''(untyped)'' | //required// | //none// | | | ''$zipFile (by reference)'' | ''(untyped)'' | //required// | //none// | |
| | ''$exclusiveLength'' | ''(untyped)'' | //required// | Number of text to be exclusived from the file path. | | | ''$exclusiveLength'' | ''(untyped)'' | //required// | Number of text to be exclusived from the file path. | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| HZip::zipDir('/path/to/sourceDir', '/path/to/out.zip'); | HZip::zipDir('/path/to/sourceDir', '/path/to/out.zip'); |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$sourcePath'' | ''(untyped)'' | //required// | Path of directory to be zip. | | | ''$sourcePath'' | ''(untyped)'' | //required// | Path of directory to be zip. | |
| | ''$outZipPath'' | ''(untyped)'' | //required// | Path of output zip file. | | | ''$outZipPath'' | ''(untyped)'' | //required// | Path of output zip file. | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |