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.
Anonymous
Yes, thanks for your tip! I will do it ASAP.