FS:RenameFile: Difference between revisions
Jump to navigation
Jump to search
Created Page |
No edit summary |
||
| Line 1: | Line 1: | ||
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 [[FS:RenameDirectory|RenameDirectory]] instead. | 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 [[FS:RenameDirectory|RenameDirectory]] instead. ('''NOTE:''' Moving files to different archives wasn't tested.) | ||
=Request= | =Request= | ||
Revision as of 03:12, 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) | 0x2 |
| 11 | srcFileLowPath.data |
| 12 | (destFileLowPath.size << 14) | 0x2 |
| 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. |