class ZipUtils
package funkin.system
Static variables
staticbannedNames:Array<String> = [".git", ".gitignore", ".github", ".vscode", ".gitattributes", "readme.txt"]
Static methods
staticarrayToList(array:Array<Entry>):List<Entry>
[Description] Converts an Array<Entry>
to a List<Entry>
.
Parameters:
array |
---|
Returns:
List
staticcreateZipFile(path:String):ZipWriter
[Description] Creates a ZIP file at the specified location and returns the Writer.
Parameters:
path |
---|
Returns:
Writer
staticopenZip(zipPath:String):Reader
[Description] Returns a zip.Reader
instance from path.
Parameters:
zipPath |
---|
Returns:
Reader
staticuncompressZip(zip:Reader, destFolder:String, ?prefix:String, ?prog:ZipProgress):ZipProgress
[Description] Uncompresses zip
into the destFolder
folder
Parameters:
zip | |
---|---|
null | destFolder |
staticuncompressZipAsync(zip:Reader, destFolder:String, ?prog:ZipProgress, ?prefix:String):ZipProgress
staticunzip(f:Entry):Null<Bytes>
[Description] Copy of haxe's Zip unzip function cause lime replaced it.
Parameters:
f | Zip entry |
---|
staticwriteFolderToZip(zip:ZipWriter, path:String, ?prefix:String, ?prog:ZipProgress, ?whitelist:Array<String>):ZipProgress
[Description] Writes the entirety of a folder to a zip file.
Parameters:
zip | ZIP file to write to |
---|---|
path | Folder path |
prefix | (Additional) allows you to set a prefix in the zip itself. |