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=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>NANDMoveAsync</title>
9</head>
10
11<body>
12
13<h1>NANDMoveAsync</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/nand.h&gt;
18
19typedef void (*NANDCallback)( s32 result, NANDCommandBlock *block );
20
21s32 NANDMoveAsync( const char *path, const char *destDir, NANDCallback cb, NANDCommandBlock *block );
22</pre></dd></dl>
23
24<h2>Arguments</h2>
25<p>
26<TABLE class="arguments" border="1" >
27  <tr>
28<TH>path</TH>
29<TD>Specifies the target file or directory name.</TD>
30  </tr>
31  <tr>
32<TH>destDir</TH>
33<TD>Directory name of the directory change destination.</TD>
34  </tr>
35  <tr>
36<TH>cb</TH>
37<TD>Callback function to call when this function completes processing.</TD>
38  </tr>
39  <tr>
40<TH>block</TH>
41<TD>Command block structure to be passed to the callback function.</TD>
42  </tr>
43</TABLE>
44</p>
45
46<h2>Return Values</h2>
47<p>
48The result codes that may be returned by <code>NANDMoveAsync</code> are listed below. Returns <CODE>NAND_RESULT_OK</CODE> when the request begins normally.
49<p>
50<code>
51NAND_RESULT_OK<br>
52NAND_RESULT_ACCESS<br>
53NAND_RESULT_ALLOC_FAILED<br>
54NAND_RESULT_BUSY<br>
55NAND_RESULT_INVALID<br>
56NAND_RESULT_FATAL_ERROR<br>
57</code>
58</p>
59<p>
60The result codes that may be passed to the callback function are listed below.
61</p>
62<p>
63<code>
64NAND_RESULT_OK<br>
65NAND_RESULT_ACCESS<br>
66NAND_RESULT_CORRUPT<br>
67NAND_RESULT_INVALID<br>
68NAND_RESULT_NOEXISTS<br>
69NAND_RESULT_OPENFD<br>
70NAND_RESULT_UNKNOWN<br>
71NAND_RESULT_FATAL_ERROR<br>
72</code>
73</p>
74</p>
75
76<H2>Description</H2>
77<p>
78Moves a file or directory asynchronously. Appropriate write permissions are required for the parent directory being moved as well as the destination directory. <code>NAND_RESULT_BUSY</code> is returned and this function call is denied when the queue for accepting requests inside the library is full.
79</p>
80
81<p>
82If the destination directory contains files or directories with the same names as those being moved, this function will overwrite them without returning an error.
83</p>
84
85<p>
86This function updates the FAT of Wii console NAND memory.
87</p>
88
89<h2>See Also</h2>
90<p class="reference">
91<a href="./NANDMove.html">NANDMove</a>
92</p>
93
94<H2>Revision History</H2>
95<p>
962008/08/01 Revised the result codes that are passed to the callback function. Commented on updating the FAT.<br>2008/05/13 Described the result codes passed to the callback function.<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>2006/10/25 Added information about write permission.<br>2006/06/16 Initial version.<br>
97</p>
98
99<hr><p>CONFIDENTIAL</p></body>
100</html>
101