Difference between revisions of "QUERY SG GETFILELIST (Myth Protocol)"

From MythTV Official Wiki
Jump to: navigation, search
m
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
Successful query
 
Successful query
 
<pre>68      QUERY_SG_GETFILELIST[]:[]mybackend[]:[]Videos[]:[]/mnt/mythtv/Videos</pre>
 
<pre>68      QUERY_SG_GETFILELIST[]:[]mybackend[]:[]Videos[]:[]/mnt/mythtv/Videos</pre>
<pre>53      dir::Movies[]:[]dir::TV[]:[]file::Some Video File.avi</pre>
+
<pre>53      dir::Movies::0[]:[]dir::TV::0[]:[]file::Some Video File.avi::9223498423::Some Video File.avi</pre>
 
Incorrect hostname, or inaccessible backend
 
Incorrect hostname, or inaccessible backend
 
<pre>71      QUERY_SG_GETFILELIST[]:[]notmybackend[]:[]Videos[]:[]/mnt/mythtv/Videos</pre>
 
<pre>71      QUERY_SG_GETFILELIST[]:[]notmybackend[]:[]Videos[]:[]/mnt/mythtv/Videos</pre>
Line 22: Line 22:
 
=== Returns ===
 
=== Returns ===
 
List of directories and files, identified with '<type>::'
 
List of directories and files, identified with '<type>::'
 +
 +
Objects contain the filename, file size in bytes, and relative file path from the root of the searched path, for use when using recursive searches.
 +
 +
=== Changelog ===
 +
{| border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse; border-color:#8eabd0; background:#e7edf5"
 +
|- style="background: lightsteelblue"
 +
|+
 +
! version !! changeset !! description
 +
|-
 +
| 44 || {{changeset|19978}}
 +
| Initial version
 +
|-
 +
| ? || {{gitcommit|7255d463cb}}
 +
| Add relative file path as fourth data point for returned file objects.
 +
|-
 +
|}
  
 
[[Category:Myth Protocol Commands]]
 
[[Category:Myth Protocol Commands]]

Latest revision as of 04:20, 28 May 2011

QUERY_SG_GETFILELIST

Arguments

Command arguments: none

List arguments: hostname, storage group, full path to search

Examples

Successful query

68      QUERY_SG_GETFILELIST[]:[]mybackend[]:[]Videos[]:[]/mnt/mythtv/Videos
53      dir::Movies::0[]:[]dir::TV::0[]:[]file::Some Video File.avi::9223498423::Some Video File.avi

Incorrect hostname, or inaccessible backend

71      QUERY_SG_GETFILELIST[]:[]notmybackend[]:[]Videos[]:[]/mnt/mythtv/Videos
36      SLAVE UNREACHABLE: []:[]notmybackend

Incorrect filename or storage group name

82      QUERY_SG_GETFILELIST[]:[]mybackend[]:[]Videos[]:[]/mnt/mythtv/Not an existing path
10      EMPTY LIST

Description

Queries the a list of files from the remote storage group

Returns

List of directories and files, identified with '<type>::'

Objects contain the filename, file size in bytes, and relative file path from the root of the searched path, for use when using recursive searches.

Changelog

version changeset description
44 [19978] Initial version
 ? [7255d463cb] Add relative file path as fourth data point for returned file objects.