The IO module provides a PUC Lua-compatible I/O library.
io.mkdir(path)
io.isreadonly(path)
io.exists(path)