Difference between revisions of "Os.rename"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a string describing the error.
+
<translate>Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a string describing the error.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  os.rename(oldname,newname)
 
  os.rename(oldname,newname)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''oldname''': (string) current name of the file <br/>
+
'''oldname''': (string) <translate>current name of the file</translate> <br/>
'''newname''': (string) new name of the file <br/>
+
'''newname''': (string) <translate>new name of the file</translate> <br/>

Revision as of 13:33, 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)

Parameters

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