Skip to main content

Module file_ops

Module file_ops 

Source
Expand description

File operation implementations for the io module.

Functionsยง

io_close
io.close(handle) -> bool
io_exists
io.exists(path) -> bool
io_flush
io.flush(handle) -> unit
io_is_dir
io.is_dir(path) -> bool
io_is_file
io.is_file(path) -> bool
io_mkdir
io.mkdir(path, recursive?) -> unit
io_open
io.open(path, mode?) -> IoHandle
io_read
io.read(handle, n?) -> string (read n bytes or all)
io_read_bytes
io.read_bytes(handle, n?) -> array of ints
io_read_dir
io.read_dir(path) -> array of strings
io_read_gzip
io.read_gzip(path: string) -> string
io_read_to_string
io.read_to_string(handle) -> string
io_remove
io.remove(path) -> unit
io_rename
io.rename(old, new) -> unit
io_stat
io.stat(path) -> TypedObject {size, modified, created, is_file, is_dir}
io_write
io.write(handle, data) -> int (bytes written)
io_write_gzip
io.write_gzip(path: string, data: string, level?: int) -> null