Codename LogoCodename Logo

funkin.backend.utils.ZipUtil

APIWiki

Static variables

View in GitHub

@:value([".git", ".gitignore", ".github", ".vscode", ".gitattributes", "readme.txt"])staticbannedNames:Array<String> = [".git", ".gitignore", ".github", ".vscode", ".gitattributes", "readme.txt"]

Static methods

View in GitHub

staticarrayToList(array:Array<Entry>):List<Entry>

[Description] Converts an Array<Entry> to a List<Entry>.

Parameters:

array

Returns:

List

View in GitHub

staticcreateZipFile(path:String):ZipWriter

[Description] Creates a ZIP file at the specified location and returns the Writer.

Parameters:

path

Returns:

Writer

View in GitHub

staticopenZip(zipPath:String):Reader

[Description] Returns a zip.Reader instance from path.

Parameters:

zipPath

Returns:

Reader

View in GitHub

staticuncompressZip(zip:Reader, destFolder:String, ?prefix:String, ?prog:ZipProgress):ZipProgress

[Description] Uncompresses zip into the destFolder folder

Parameters:

zip
null

destFolder

View in GitHub

staticuncompressZipAsync(zip:Reader, destFolder:String, ?prog:ZipProgress, ?prefix:String):ZipProgress

View in GitHub

staticunzip(f:Entry):Null<Bytes>

[Description] Copy of haxe's Zip unzip function cause lime replaced it.

Parameters:

f

Zip entry

View in GitHub

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.

View in GitHub

staticwriteFolderToZipAsync(zip:ZipWriter, path:String, ?prefix:String):ZipProgress