Check if file exists in GDive

56 views
Skip to first unread message

Alex

unread,
Aug 7, 2023, 2:42:34 PM8/7/23
to Automate
How to check if file exists in Google Drive before trying to download it. Right now I am handling it with "Catch" block but wonder if there is a better way?

Henrik "The Developer" Lindqvist

unread,
Aug 8, 2023, 5:10:34 AM8/8/23
to Automate
No, it's a feature on the to-do list.

Shari Shark

unread,
Aug 8, 2023, 11:07:25 AM8/8/23
to automa...@googlegroups.com
Hmm, have your tried to check Google drive api? You can enable it for free, afaik. And it applies seem to fit your needs. 

--
You received this message because you are subscribed to the Google Groups "Automate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to automate-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/dd3e04ab-9367-434f-84c6-9606279956d3n%40googlegroups.com.

Henrik "The Developer" Lindqvist

unread,
Aug 8, 2023, 12:25:55 PM8/8/23
to Automate
Of course, that's what the Google Drive blocks are using.

Shari Shark

unread,
Aug 8, 2023, 12:59:30 PM8/8/23
to automa...@googlegroups.com
Ah I see. I mean, since there's api, one can also try to use the http request block, or at worst case, shell command block to do any functions not available as of yet.

Shari Shark

unread,
Aug 8, 2023, 11:00:15 PM8/8/23
to automa...@googlegroups.com
You can try the api files.list and execute it in a http request block.


You can pass queries to to search for the file and handle the response accordingly. 

Alex

unread,
Aug 8, 2023, 11:29:09 PM8/8/23
to Automate
Shari, I wish I knew how to implement this. Do you know if there is an example for this in the community?
Reply all
Reply to author
Forward
0 new messages