lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.1k stars 161 forks source link

mrm -r won't work for directories #622

Open matthewchoffman opened 3 years ago

matthewchoffman commented 3 years ago

If I want to use wildcards with mrm, it works but only for files, not directories, even if I set the -r option.

My input and output:

drwxr-xr-x 3 41 Mar 6 13:36 . drwx--x--x 21 4096 Mar 4 21:03 .. drwxr-xr-x 2 26 Mar 6 13:36 testdir -rw-r--r-- 1 15 Mar 6 13:22 testfile.txt lftp [IP]:/backups> mrm -r test rm ok, `testfile.txt' removed
lftp [IP]/backups> mrm -r
Usage: rm [-r] [-f] files...

After that last error message I checked and testdir is still there.

patleb commented 3 years ago

Got the same problem on Ubuntu 20.04, mrm seems to have been removed and glob rm doesn't work either.