mtp-emptyfolders: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/mtp-emptyfolders - from package: libmtp-examples

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/mtp-emptyfolders - from package: mtp-tools

You may install the required package with command apt-get install {package}
Error in other languages:
mtp-emptyfolders: bevel nie gevind nie
mtp-emptyfolders: comandă negăsită
mtp-emptyfolders: comando não encontrado
mtp-emptyfolders: commande introuvable
mtp-emptyfolders: command not found
mtp-emptyfolders: käsku ei ole
mtp-emptyfolders: không tìm thấy lệnh
mtp-emptyfolders: komanda nerasta
mtp-emptyfolders: Kommando nicht gefunden.
mtp-emptyfolders: kommandot finns inte
mtp-emptyfolders: komut yok
mtp-emptyfolders: nie znaleziono polecenia
mtp-emptyfolders: níor aimsíodh an t-ordú
mtp-emptyfolders: no se encontró la orden
mtp-emptyfolders: no s'ha trobat l'ordre
mtp-emptyfolders: opdracht niet gevonden
mtp-emptyfolders: parancs nem található
mtp-emptyfolders: perintah tidak ditemukan
mtp-emptyfolders: príkaz nenájdený
mtp-emptyfolders: příkaz nenalezen
mtp-emptyfolders: команда не найдена
mtp-emptyfolders: командата не е открита
mtp-emptyfolders: 命令找不到
mtp-emptyfolders: コマンドが見つかりません