ðFilesystem
filesystem namespace
Functions
read
fs.read("some_file.txt")
path
string
path to file
Returns:
read_stream
fs.read_stream("some_file.txt")
path
string
path to file
Returns:
write
fs.write("some_file.txt", "data")
write_stream
fs.write_stream("some_file.txt", {"a", "b", "c"})
remove
fs.remove("some_file.txt")
path
string
path to file
exists
fs.exists("some_file.txt")
path
string
path to file or directory
Returns:
is_file
fs.is_file("some_file.txt")
path
string
path to file
Returns:
is_dir
fs.is_dir("some_file.txt")
path
string
path to directory
Returns:
create_dir
fs.create_dir("folder/some_directory")
path
string
path to directory
Last updated