Difference between revisions of "Fs.move"

From ComputerCraft Wiki
Jump to: navigation, search
(Admiration Computer)
(Undo revision 1932 by 91.121.27.33 (talk))
Line 1: Line 1:
I want to share in this position I found when looking notwithstanding ignore auto parts, they saved me 100s of dollars when I was getting my car second on the road mould month, so I thought I'd restore the karma and entrust them a tumescence on here. On the whole 'disregard auto parts' veer out to be anything but, and you end up spending over-the-odds for miserable quality parts and yeah, that's no longer a blunder I can contribute to up, who can in this economy, right? So, rpm-motots-inc.com are contrasting, like extraordinarily, in reality different. Senior up, the quotation you are quoted is the price you meet, no recondite extras. The parts I ordered were all in assortment, were shipped stable and were well packaged. I was amazed with the grade, chiefly recompense the weak bonus I paid, which was
+
{{lowercase}}
$391 cheaper than the popular discount auto parts sites. I had a only one questions before I ordered and the crook I spoke to were extraordinarily cooperative, and knew their stuff. Their character care and range of parts is impressive, rpm motors certainly keep their promises when it comes to discount auto parts.
+
{{Function
 +
|name=fs.move
 +
|args=[[string (type)|string]] fromPath, [[string (type)|string]] toPath
 +
|api=fs
 +
|desc=Moves a file or directory to a new location (the parent of the new location must be a directory, <var>toPath</var> must include the target filename and cannot be only a directory to move the file into, and <var>toPath</var> itself must not already exist)
 +
|examples=
 +
{{Example
 +
|desc=Renames a file from "test1" to "test2" and moves it from the root directory into a directory called "mydir"
 +
|code=fs.move("test1", "mydir/test2")
 +
}}
 +
}}

Revision as of 02:36, 4 July 2012


Grid Redstone.png  Function fs.move
Moves a file or directory to a new location (the parent of the new location must be a directory, toPath must include the target filename and cannot be only a directory to move the file into, and toPath itself must not already exist)
Syntax fs.move(string fromPath, string toPath)
Returns nil
Part of ComputerCraft
API fs

Examples

Grid paper.png  Example
Renames a file from "test1" to "test2" and moves it from the root directory into a directory called "mydir"
Code
fs.move("test1", "mydir/test2")