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