I tried to use filter in rclone move to move the files containing "mide" in the target directory (either the files in the root directory of the target directory or the files in the subdirectories) into the mide folder, but when I run the command It is found that many files that do not contain mide have also moved past, such as some files containing only m and files containing only d, but the files that actually contain mide have not passed, such as files in subdirectories
What is your rclone version (output from rclone version)
1.52.1
Which OS you are using and how many bits (eg Windows 7, 64 bit)
debian 10
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
Still not work, I can’t use the filter command and changed it to include. Do you think it is changed this way? In the target directory and in the subfolders under the target directory, no matter the case, as long as the mide is included, it will move over:
gclone move oneking:{1B_8ggpvu7UEvIVJbm9O3pyzCFRka697N} oneking:{1QtI6xnG-zRvQPX-wC2fgP_PZSSHGKtz8} -vvP --fast-list --include "mide.*" --ignore-case
There are always many ways to do things so use what works best.
I find filtering to be easier as I can tailor the rules much more specific.
I tend to use files-from and build my logic of what I need as it's top down processing and work for my brain.
If the goal is to filter all files under any directory that contains "mide" in the name, it's just
+ **mide**/**
- *
If it's mide and MIDE
+ **mide**/**
+ "**MIDE**/**"
- *
And as always test with dry-run and with ls and you can validate your commands do what you'd expect. I use rlcone ls first and graduate to dry-run on the copy, sync or move command and once dry-run is validated, I use the actual command.
There is a problem, that is, the files in the sub-files are not moved separately, but moved together with the sub-folders. How to make the move command only move the files that meet the conditions, but not the folders that meet the conditions