FileDelete

From Multi Theft Auto: Wiki
Revision as of 10:49, 16 May 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Server function}} Deletes the specified file. ==Syntax== <syntaxhighlight lang="lua"> bool fileDelete ( string filename [, resource res = getThisResource()] ) </syntaxhighlight> ===Required Arguments===...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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).

See Also