SKS OCDoc
OpenComputers
Computronics
Minitel

module/fs.lua

fs.address(path^string^): string

Returns the address of the filesystem at a given path, if applicable; do not expect a sensical response

fs.rename(from^string^, to^string^): boolean

Moves file from to to

fs.type(path^string^): string

Returns the component type of the filesystem at a given path, if applicable

fs.resolve(path^string^): string, string

Resolves path to a specific filesystem mount and path

fs.umount(path^string^)

Unmounts filesystem from path.

fs.mounts(): table

Returns a table containing the mount points of all mounted filesystems

fs.copy(from^string^, to^string^): boolean

copies a file from from to to

fs.open(path^string^, mode^string^): table

Opens file path with mode mode, returning a file object.

fs.segments(path^string^): table

Splits path on each /

fs.mount(path^string^, proxy^table^): boolean

Mounts the filesystem proxy to the mount point path if it is a directory. BYO proxy.

© ShadowKat Studios
The software used to generate this page is licensed under the Mozilla Public License version 2 and can be found here