2022-02-25 22:00:39 +00:00
|
|
|
--- @meta
|
|
|
|
|
|
|
|
local fs = {}
|
|
|
|
|
|
|
|
--- Changes directory to `dir`
|
2022-02-25 22:15:49 +00:00
|
|
|
--- @param dir string
|
|
|
|
function fs.cd(dir) end
|
2022-02-25 22:00:39 +00:00
|
|
|
|
|
|
|
--- Makes a directory called `name`. If `recursive` is true, it will create its parent directories.
|
2022-02-25 22:15:49 +00:00
|
|
|
--- @param name string
|
|
|
|
--- @param recursive bool
|
|
|
|
function fs.mkdir(name, recursive) end
|
2022-02-25 22:00:39 +00:00
|
|
|
|
|
|
|
--- Returns a table of files in `dir`
|
2022-02-25 22:15:49 +00:00
|
|
|
--- @param dir string
|
|
|
|
--- @return table
|
|
|
|
function fs.readdir(dir) end
|
2022-02-25 22:00:39 +00:00
|
|
|
|
|
|
|
--- Returns info about `path`
|
2022-02-25 22:15:49 +00:00
|
|
|
--- @param path string
|
|
|
|
function fs.stat(path) end
|
2022-02-25 22:00:39 +00:00
|
|
|
|
|
|
|
return fs
|