lavv17 / lftp

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

mmv command does not move hidden (dot) files #664

Open lucaheft opened 2 years ago

lucaheft commented 2 years ago

I'm trying to rename a directory by using the mmv command. This works perfectly fine, except for dot files. Is this intended behaviour?

Here is my command: mmv /path/to/old/dir/* /path/to/new/dir/

I also tried adding set ftp:list-options -a which seems to have no effect on the mvv command

lavv17 commented 2 years ago

I think doesn’t match dot files, use . for them.

lucaheft commented 2 years ago

So there is no way to do all of this in one command? That would be quite inconvenient. I guess i could do mmv /path/to/old/dir/* /path/to/new/dir/ followed by mmv /path/to/old/dir/.* /path/to/new/dir/ This would atleast work for dot files in the root directory, but not in any subdirectories. Or am I wrong here? Shouldn't * match everything in the directory in the first place?