Difference between revisions of "Command:32"

From Awesome Baozam
Jump to: navigation, search
(Response to GET filesize(s) from device)
Line 5: Line 5:
 
  1  file info count // max 256
 
  1  file info count // max 256
 
file info<nowiki>[</nowiki>*]
 
file info<nowiki>[</nowiki>*]
  wl  filehash length
+
   
c*  filehash
+
 
  wl  filename length
 
  wl  filename length
 
  c*  filename
 
  c*  filename
Line 12: Line 11:
 
     positive value - real file size in bytes
 
     positive value - real file size in bytes
 
     0 - file not exists
 
     0 - file not exists
 
+
if file size != 0 then include file hash info
 +
wl  filehash length
 +
c*  filehash
 
<noinclude>
 
<noinclude>
 
{{cmd:31}}
 
{{cmd:31}}

Revision as of 17:11, 15 September 2016

Response to GET filesize(s) from device

1  cmd type
2  cmd id // set by server
1  file info count // max 256

file info[*]

wl  filename length
c*  filename
wl  file size
    positive value - real file size in bytes
    0 - file not exists
if file size != 0 then include file hash info
wl  filehash length
c*  filehash 

GET filesize(s) from device

1  cmd type
2  cmd id // set by server
1  filename count // max 256

filename[*]

wl  filename length
c*  filename