Menu

#1598 Improve [source] spefication in mtp-connect usage

1.1.12
accepted
None
4
2016-08-31
2016-08-28
b2f9h203
No

The output of mtp-connect is

libmtp version: 1.1.12

Device 0 (VID=12d1 and PID=1082) is a Huawei Ascend P8 .
Android device detected, assigning default bug flags
Usage: connect <command1> <command2>
Commands: --delete [filename]
          --sendfile [source] [destination]
          --sendtrack [source] [destination]
          --getfile [source] [destination]
          --newfolder [foldername]

So my first try was something like:

mtp-connect --getfile Camera/IMG_20160826_093251.jpg .

But mtp-connect expects the file ID as shown by mtp-files it seems, so

time mtp-connect --getfile 3158 IMG20160826093251.jpg
    libmtp version: 1.1.12

    Device 0 (VID=12d1 and PID=1082) is a Huawei Ascend P8 .
    Android device detected, assigning default bug flags
    Get file 3158
    Getting 3158 to IMG20160826093251.jpg
    Unknown options: IMG20160826093251.jpg 

    real    0m9.801s
    user    0m0.268s
    sys 0m0.340s

I think this should be mentioned in the usage! Also support for -h|--help would be nice.

Discussion

  • Reverend Homer

    Reverend Homer - 2016-08-31
    • status: open --> accepted
    • assigned_to: Reverend Homer
    • Priority: 1 --> 4
     
  • Reverend Homer

    Reverend Homer - 2016-08-31

    Yes, thanks for your tip! I will do it ASAP.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB