FileDelete: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Server function}} Deletes the specified file. ==Syntax== <syntaxhighlight lang="lua"> bool fileDelete ( string filename [, resource res = getThisResource()] ) </syntaxhighlight> ===Required Arguments===...) |
m (Needs example) |
||
Line 16: | Line 16: | ||
===Returns=== | ===Returns=== | ||
Returns ''true'' if successful, ''false'' otherwise (for example if there exists no file with the given name, or it does exist but is in use). | Returns ''true'' if successful, ''false'' otherwise (for example if there exists no file with the given name, or it does exist but is in use). | ||
==Example== | |||
<syntaxhighlight lang="lua"> | |||
--TODO | |||
</syntaxhighlight> | |||
==See Also== | ==See Also== | ||
{{File_functions}} | {{File_functions}} | ||
[[Category:Needs Example]] |
Revision as of 18:13, 18 June 2009
Deletes the specified file.
Syntax
bool fileDelete ( string filename [, resource res = getThisResource()] )
Required Arguments
- filename: the name of the file to delete.
Optional Arguments
- res: the resource containing the file to delete.
Returns
Returns true if successful, false otherwise (for example if there exists no file with the given name, or it does exist but is in use).
Example
--TODO