Difference between revisions of "FS:RenameFile"
Jump to navigation
Jump to search
(Fixed wrong translate descriptors) |
|||
Line 26: | Line 26: | ||
| 9 || destFileLowPath.size | | 9 || destFileLowPath.size | ||
|- | |- | ||
− | | 10 || (srcFileLowPath.size << 14) <nowiki>|</nowiki> | + | | 10 || (srcFileLowPath.size << 14) <nowiki>|</nowiki> 0x402 |
|- | |- | ||
| 11 || srcFileLowPath.data | | 11 || srcFileLowPath.data | ||
|- | |- | ||
− | | 12 || (destFileLowPath.size << 14) <nowiki>|</nowiki> | + | | 12 || (destFileLowPath.size << 14) <nowiki>|</nowiki> 0x802 |
|- | |- | ||
| 13 || destFileLowPath.data | | 13 || destFileLowPath.data |
Revision as of 03:15, 23 November 2014
Renames or moves a file. The file is moved from the path srcFileLowPath in archive srcArchive to destFileLowPath in destArchive. This call does not work with directories, use RenameDirectory instead. (NOTE: Moving files to different archives wasn't tested.)
Request
Index Word | Description |
---|---|
0 | Header code [0x08050244] |
1 | 0 |
2 | srcArchive.handleLow |
3 | srcArchive.handleHigh |
4 | srcFileLowPath.type |
5 | srcFileLowPath.size |
6 | destArchive.handleLow |
7 | destArchive.handleHigh |
8 | destFileLowPath.type |
9 | destFileLowPath.size |
10 | (srcFileLowPath.size << 14) | 0x402 |
11 | srcFileLowPath.data |
12 | (destFileLowPath.size << 14) | 0x802 |
13 | destFileLowPath.data |
Response
Index Word | Description |
---|---|
0 | Header code |
1 | Resultcode |
Errors
Result code | Description |
---|---|
0 | Returned on success. |
0xC8804478 | When the source file does not exist or is a directory. |
0xC82044BE | When the destination file already exists. |