Os.remove: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Deletes the file or directory with the given name. Directories must be empty to be removed. If this fu..."
 
No edit summary
Line 4: Line 4:
Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error.
Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error.
<source lang="lua">
<source lang="lua">
= os.remove(filename,)
os.remove(filename)
</source>
</source>
'''filename:''' (string) filename to delete ''''''<br/>
'''filename''': (string) filename to delete ''''''<br/>

Revision as of 09:17, 23 August 2018

Available since: Gideros 2011.6

Description

Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error.

 os.remove(filename)

'filename: (string) filename to delete '