Standard library
fs
Read, write, inspect, create, list, and remove filesystem entries.
Functions
exists, is_file, and is_dir inspect paths. read reads a file. write replaces file contents and append adds to them. mkdir creates directories recursively. remove removes a file or directory tree. list returns sorted directory names.
fs.tk
use fs
fs.write("hello.txt", "Hello from Tekst")
print(fs.read("hello.txt"))
print(fs.exists("hello.txt"))
fs.remove("hello.txt")