lftp icon indicating copy to clipboard operation
lftp copied to clipboard

mmv command does not move hidden (dot) files

Open lucaheft opened this issue 2 years ago • 2 comments

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

lucaheft avatar Apr 07 '22 08:04 lucaheft

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

lavv17 avatar Apr 09 '22 20:04 lavv17

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?

lucaheft avatar Apr 11 '22 07:04 lucaheft