prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.18k forks source link

How to properly use query to download multiple files matching query #668

Open sakhawt opened 1 year ago

sakhawt commented 1 year ago

gdrive --service-account service.json download -r 1Qzpb5D_folderid_cvugS_zL This command is working fine for me. But I want to download files from that folder that matches specific queries. I tried using gdrive --service-account service.json download query -r "08-01-23" 1Qzp_folderid_gS_zL. I have dates in my filenames. So, I want to pass "08-01-23" as the query to download all files that have the date in their filename. But this command throw me an error. No valid arguments given, use 'gdrive help' to see available commands. Am I using the arguments wrong?!

patrickwindeck commented 1 year ago

https://developers.google.com/drive/api/guides/ref-search-terms

Use list to find all these files and then download.

name contains 'dd-mm-yy'