FECALITY.SHOP [API]
  • Overview
  • GETTING STARTED
    • Metadata
    • Creating scripts
    • Callbacks
    • Examples
    • Useful resources
  • DOCUMENTATION
    • Datatypes
      • entity
      • player_info
      • weapon_info
      • user_cmd
      • trace_t
      • vec3
      • cvar
      • timer
      • cfg_value
      • shot_info
      • game_event
      • material
      • material_var
      • zip
      • animator
    • Namespaces
      • Gui
      • Render
      • Engine
      • Math
      • Utilities
      • Entities
      • Database
      • Input
      • Panorama
      • Materials
      • Filesystem
      • Zip
    • Instances
      • Global Vars
      • Fecality
      • Gamerules
      • Server
Powered by GitBook
On this page
  1. DOCUMENTATION
  2. Datatypes

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

zip_object:write("folder/file.txt", "data")

path

string

path to file

data

string

content to write to file

write_stream

zip_object:write_stream("folder/file.txt", {"a", "b", "c"})

path

string

path to file

data

table of char

stream to write

save

zip_object:save()Saves the file's content

get_files

zip_object:get_files()

Returns:

files

table

exists

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

path

string

path to file

Returns:

true if file exists

boolean

extract

zip_object:extract("folder/file.txt", "some_directory")

path

string

path to file

destination

string

directory to extract file to

extract_all

zip_object:extract_all("some_directory")

destination

string

directory to extract file to

Previousmaterial_varNextanimator

Last updated 2 years ago

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description
Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description
Parameter
Datatype
Description