Download files from Google Drive with filter on name


#1

I am trying to download thousands of files from a directory on Drive. Moreover, I need to apply a filter on the name: just the files containing Vv. I tried the following command:

rclone copy drive_name:direcotry_name . --include *Vv.expansion --verbose.

But after 30 minutes, I keep getting:

Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 0, -

Am I doing something wrong?


#2

You are matching files which end in the string Vv.expansion is that what you wanted? If want files which have Vv anywhere in them then you want

–include “Vv

Can you give an example of the file name that you want to match?

Note also that you can test this with

rclone ls --fast-list drive_name:direcotry_name --include "*Vv.expansion"

Which will give you a much quicker idea as to whether you’ve got the filter right.