βš™οΈzip

zip datatype

Functions

read

zip_object:read("folder/file.txt")

path

string

path to file

Returns:

contents

string

read_stream

zip_object:read_stream("folder/file.txt")

path

string

path to file

Returns:

file stream

table of char

write

path

string

path to file

data

string

content to write to file

write_stream

path

string

path to file

data

table of char

stream to write

save

Saves the file's content

get_files

Returns:

files

table

exists

path

string

path to file

Returns:

true if file exists

boolean

extract

path

string

path to file

destination

string

directory to extract file to

extract_all

destination

string

directory to extract file to

Last updated