2020-04-10 09:27:53 +00:00
|
|
|
--- The FS API allows you to manipulate files and the filesystem.
|
|
|
|
--
|
|
|
|
-- @module fs
|
|
|
|
|
2020-05-12 10:32:48 +00:00
|
|
|
--- Returns true if a path is mounted to the parent filesystem.
|
|
|
|
--
|
|
|
|
-- The root filesystem "/" is considered a mount, along with disk folders and
|
|
|
|
-- the rom folder. Other programs (such as network shares) can exstend this to
|
|
|
|
-- make other mount types by correctly assigning their return value for getDrive.
|
|
|
|
--
|
|
|
|
-- @tparam string path The path to check.
|
|
|
|
-- @treturn boolean If the path is mounted, rather than a normal file/folder.
|
|
|
|
-- @throws If the path does not exist.
|
|
|
|
-- @see getDrive
|
|
|
|
function isDriveRoot(path) end
|
|
|
|
|
2020-04-28 08:42:34 +00:00
|
|
|
-- Defined in bios.lua
|
|
|
|
function complete(sPath, sLocation, bIncludeFiles, bIncludeDirs) end
|
|
|
|
|
2020-04-10 09:27:53 +00:00
|
|
|
--- A file handle which can be read from.
|
|
|
|
--
|
|
|
|
-- @type ReadHandle
|
|
|
|
-- @see fs.open
|
|
|
|
local ReadHandle = {}
|
|
|
|
function ReadHandle.read(count) end
|
|
|
|
function ReadHandle.readAll() end
|
|
|
|
function ReadHandle.readLine(with_trailing) end
|
|
|
|
function ReadHandle.seek(whence, offset) end
|
|
|
|
function ReadHandle.close() end
|
|
|
|
|
|
|
|
--- A file handle which can be written to.
|
|
|
|
--
|
|
|
|
-- @type WriteHandle
|
|
|
|
-- @see fs.open
|
|
|
|
local WriteHandle = {}
|
|
|
|
function WriteHandle.write(text) end
|
|
|
|
function WriteHandle.writeLine(text) end
|
|
|
|
function WriteHandle.flush(text) end
|
|
|
|
function WriteHandle.seek(whence, offset) end
|
|
|
|
function WriteHandle.close() end
|