Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:hzip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

scriptlog:lib:core:hzip [2026/09/26 09:09] – admin adminscriptlog:lib:core:hzip [2026/09/26 09:16] (current) – admin admin
Line 28: Line 28:
 ======= 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 |
  
  
Line 43: Line 43:
 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)''
Line 64: Line 64:
   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)''
scriptlog/lib/core/hzip.1790413762.txt.gz · Last modified: by admin