it recreates all the subfolders inside folder1 again in folder2.
Basically I want to take all the files inside the subfolders and put it in the parent.
if i understand what you want, then i know of two ways
rclone lsf -R --files-only --include=*.jpg remote:folder1 > thedirs.txt
for /f %%u in (thedirs.txt) do rclone copy remote:folder1/%%u remote:folder2
you could do a rclone mount remote:
then use file manager to select all files in a flat view of folder1
use file manager to move those files to folder2
For folders that have space on it, it's only using the first word even using the "remote:folder1/%%u"
EDIT: Solved it.
So I list the files into a txt, open the txt with notepad++ add " at the end of every line, easy done with replace all $ with ".
Run again but like this:
for /f "usebackq delims=" %%u in (thedirs.txt) do rclone copy "remote:folder1/%%u remote:folder2 -P
--flatten would mean copy all the files to the root of the destination rather than in their hierarchy. It would be surprisingly useful at times, but a bit of thought needed as to how to handle files with the same name.
sure, i have used the concept many times.
most file managers have that.
duplicate files would a problem.
guess a new set of flags would be needed.
--flatten-overwrite-if-duplicates.
--flatten-rename perhaps with --suffix
--flatten-do-not-overwrite
--flatten-allow-duplicates - for storage systems like gdrive
--flatten-the-earth
Depending on the software it takes 30+ minutes to scan 2000 folders within gdrive.
Windows explorer with rclone mount can take up to 10 seconds going into a folder and back to the previews one depending how many files you have.
If you just drop everything into a single folder this is way faster, less API calls to google.
This folder with 2000 files can be opened in less than 10 seconds.