QUERY SG GETFILELIST (Myth Protocol)

From MythTV Official Wiki
Revision as of 04:20, 28 May 2011 by Wagnerrp (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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]cgitgithub Add relative file path as fourth data point for returned file objects.