Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

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

Open
sakhawt opened this issue Jan 9, 2023 · 1 comment
Open

Comments

@sakhawt
Copy link

sakhawt commented Jan 9, 2023

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
Copy link

patrickwindeck commented Feb 6, 2023

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'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants