Changes

46 bytes added ,  20:11, 17 October 2015
m
Use common types, minor cleanup.
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. ('''NOTE:''' Moving files to different archives wasn't tested.)
  −
   
=Request=
 
=Request=
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
! Index Word !! Description
+
! Index Word
|-
+
! Description
| 0 || Header code [0x08050244]
  −
|-
  −
| 1 || Transaction (usually 0)
   
|-
 
|-
| 2 || srcArchive.handleLow
+
| 0
 +
| Header code [0x08050244]
 
|-
 
|-
| 3 || srcArchive.handleHigh
+
| 1
 +
| Transaction (usually 0)
 
|-
 
|-
| 4 || srcFileLowPath.type
+
| 2-3
 +
| u64, Source Archive Handle
 
|-
 
|-
| 5 || srcFileLowPath.size
+
| 4
 +
| [[Filesystem_services#PathType|Source File Path Type]]
 
|-
 
|-
| 6 || destArchive.handleLow
+
| 5
 +
| Source File Path Size
 
|-
 
|-
| 7 || destArchive.handleHigh
+
| 6-7
 +
| u64, Destination Archive Handle
 
|-
 
|-
| 8 || destFileLowPath.type
+
| 8
 +
| [[Filesystem_services#PathType|Destination File Path Type]]
 
|-
 
|-
| 9 || destFileLowPath.size
+
| 9
 +
| Destination File Path Size
 
|-
 
|-
| 10 || (srcFileLowPath.size << 14) <nowiki>|</nowiki> 0x402
+
| 10
 +
| (SourceFilePathSize << 14) <nowiki>|</nowiki> 0x402
 
|-
 
|-
| 11 || srcFileLowPath.data
+
| 11
 +
| Source File Path Data
 
|-
 
|-
| 12 || (destFileLowPath.size << 14) <nowiki>|</nowiki> 0x802
+
| 12
 +
| (DestinationFilePathSize << 14) <nowiki>|</nowiki> 0x802
 
|-
 
|-
| 13 || destFileLowPath.data
+
| 13
 +
| Destination File Path Data
 
|}
 
|}
   Line 38: Line 45:  
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
! Index Word !! Description
+
! Index Word
 +
! Description
 
|-
 
|-
| 0 || Header code
+
| 0
 +
| Header code
 
|-
 
|-
| 1 || Resultcode
+
| 1
 +
| Result code
 
|}
 
|}
 +
 +
=Description=
 +
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.)
    
=Errors=
 
=Errors=
1,434

edits