1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>NANDMove</title> 9</head> 10 11<body> 12 13<h1>NANDMove</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre class="construction">#include <revolution/nand.h> 17 18s32 NANDMove(const char *path, const char *destDir); 19</pre></dd></dl> 20 21<h2>Arguments</h2> 22<p> 23<TABLE class="arguments" border="1" > 24 <tr> 25<TH>path</TH> 26<TD>Specifies the target file or directory name.</TD> 27 </tr> 28 <tr> 29<TH>destDir</TH> 30<TD>Directory name of the directory change destination.</TD> 31 </tr> 32</TABLE> 33</p> 34 35<h2>Return Values</h2> 36<p> 37Returns one of the following codes. 38<p> 39<code>NAND_RESULT_OK<br> NAND_RESULT_ACCESS<br> NAND_RESULT_ALLOC_FAILED<br> NAND_RESULT_BUSY<br> NAND_RESULT_CORRUPT<br> NAND_RESULT_INVALID<br> NAND_RESULT_NOEXISTS<br> NAND_RESULT_OPENFD<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code> 40</p> 41</p> 42 43<H2>Description</H2> 44<p> 45Moves a file or directory. Appropriate write permissions are required for the parent directory being moved as well as for the destination directory. 46</p> 47 48<p> 49If the destination directory contains files or directories with the same names as those being moved, this function will overwrite them without returning an error. 50</p> 51 52<p> 53This function sometimes puts the current thread to sleep, so it cannot be called from callback functions. For precautions when calling similar functions, refer to <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>. 54</p> 55 56<p> 57This function updates the FAT of Wii console NAND memory. 58</p> 59 60<h2>See Also</h2> 61<p class="reference"> 62<a href="./NANDMoveAsync.html">NANDMoveAsync</a><BR><a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a> 63</p> 64 65<H2>Revision History</H2> 66<p> 672008/08/01 Commented about updating the FAT.<br>2008/04/23 Described this function's behavior when files and directories with the same names as those being moved exist in the destination directory.<br>2007/09/25 Added information about the sleep status of threads.<br>2006/11/30 Added the <CODE>NAND_RESULT_ALLOC_FAILED</CODE> and <CODE>NAND_RESULT_BUSY</CODE> codes.<br>2006/10/25 Added information about permissions.<br>2006/06/16 Initial version.<BR> 68</p> 69 70<hr><p>CONFIDENTIAL</p></body> 71</html>