diff options
author | madmaxoft <github@xoft.cz> | 2013-10-09 11:31:38 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-09 11:31:38 +0200 |
commit | 9fc35514e64657f08929894c4ea4142daa81052d (patch) | |
tree | e898abaa3695973fb9836b75abd2415a12436913 /MCServer/Plugins/APIDump/APIDesc.lua | |
parent | APIDump: Added support for extra pages. (diff) | |
download | cuberite-9fc35514e64657f08929894c4ea4142daa81052d.tar cuberite-9fc35514e64657f08929894c4ea4142daa81052d.tar.gz cuberite-9fc35514e64657f08929894c4ea4142daa81052d.tar.bz2 cuberite-9fc35514e64657f08929894c4ea4142daa81052d.tar.lz cuberite-9fc35514e64657f08929894c4ea4142daa81052d.tar.xz cuberite-9fc35514e64657f08929894c4ea4142daa81052d.tar.zst cuberite-9fc35514e64657f08929894c4ea4142daa81052d.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index 7bef7bcfd..c41cac51b 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -841,6 +841,30 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(), }, }, + cFile = + { + Desc = [[ + Provides helper functions for manipulating and querying the filesystem. Most functions are called + directly on the cFile class itself: +<pre> +cFile:Delete("/usr/bin/virus.exe"); +</pre></p> + ]], + + Functions = + { + Copy = { Params = "SrcFileName, DstFileName", Return = "bool", Notes = "Copies a single file to a new destination. Returns true if successful. Fails if the destination already exists." }, + CreateFolder = { Params = "FolderName", Return = "bool", Notes = "Creates a new folder. Returns true if successful." }, + Delete = { Params = "FileName", Return = "bool", Notes = "Deletes the specified file. Returns true if successful." }, + Exists = { Params = "FileName", Return = "bool", Notes = "Returns true if the specified file exists." }, + GetSize = { Params = "FileName", Return = "number", Notes = "Returns the size of the file, or -1 on failure." }, + IsFile = { Params = "Path", Return = "bool", Notes = "Returns true if the specified path points to an existing file." }, + IsFolder = { Params = "Path", Return = "bool", Notes = "Returns true if the specified path points to an existing folder." }, + Rename = { Params = "OrigPath, NewPath", Return = "bool", Notes = "Renames a file or a folder. Returns true if successful. Undefined result if NewPath already exists." }, + }, + + }, + cFireChargeEntity = { Desc = "", |