Os.rename: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a str..."
 
No edit summary
Line 4: Line 4:
Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a string describing the error.
Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a string describing the error.
<source lang="lua">
<source lang="lua">
= os.rename(oldnamenewname,)
os.rename(oldname,newname)
</source>
</source>
'''oldname:''' (string) current name of the file ''''''<br/>
'''oldname''': (string) current name of the file ''''''<br/>
'''newname:''' (string) new name of the file ''''''<br/>
'''newname''': (string) new name of the file ''''''<br/>

Revision as of 09:19, 23 August 2018

Available since: Gideros 2011.6

Description

Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a string describing the error.

 os.rename(oldname,newname)

'oldname: (string) current name of the file '
'newname: (string) new name of the file '