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

From MythTV Official Wiki
Jump to: navigation, search
m
(No difference)

Revision as of 19:22, 16 December 2009

QUERY_SG_FILEQUERY

Arguments

Command arguments: none

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

Examples

Successful query

88      QUERY_SG_FILEQUERY[]:[]mybackend[]:[]Videos[]:[]/mnt/mythtv/Videos/Some Video File.avi
69      /mnt/mythtv/Videos/Some Video File.avi[]:[]1244512448[]:[]14540003328

Incorrect hostname, or inaccessible backend

91      QUERY_SG_FILEQUERY[]:[]notmybackend[]:[]Videos[]:[]/mnt/mythtv/Videos/Some Video File.avi
36      SLAVE UNREACHABLE: []:[]notmybackend

Incorrect filename or storage group name

90      QUERY_SG_FILEQUERY[]:[]mybackend[]:[]Videos[]:[]/mnt/mythtv/Videos/Some Missing File.avi
10      EMPTY LIST

Description

Queries the a single file from the remote storage group

Returns

Returns file name, last modification time (seconds since epoch), and file size (long instead of the standard two ints)