Have a current project where I'm trying to figure out a way to copy files(a video) from a MTP device over USB.
From the wiki I discover there is an open-source implementation called libmtp
. Has anyone reading this used this? Any examples, tutorials?
I'd prefer to run Ubuntu with MATE.
Unix-like systems
A free and open-source implementation of the Media Transfer Protocol is available as libmtp
.This library incorporates product and device IDs from many sources, and is commonly used in other software for MTP support.
Best Answer
You should install the required packages:
Connect your device then run
mtp-detect
, this command will detect and give you some information about your device.Run
mtp-connect
thenmtp-folders
to display your folders with their IDthe
mtp-files
will display your files/folders with their IDto create a list file run:
Use the command
mtp-getfile
to copy file from your device to your computer , there is an example from debian wiki: