How to check if the file in google drive folder is existing or not

Hi All,

I want to check if the file existing in the google drive folder or not?
I’ve already uploaded the file in the google drive folder, what is left is I want to check if the file if existing then I will be going to upload it.

Thanks in Advance,

1 Like

@pattyricarte, Hi, you can try to check for files using the Google Drive API’s. check these below.

https://developers.google.com/drive/api/v3/reference/query-ref

https://developers.google.com/drive/api/v2/reference/files/list

2 Likes

Hi @SenzoD

Thanks for the reply! So far I am using the Gsuite Activities to access the files I am wondering how to use the Find Files and Folders to check if the files alreay exist in the folder dirve.

Thanks in Advance.

1 Like

Good day, Sir? Did you already solve this issue?

1 Like

Hi @Robert_Russell_Monsalud

Yes!

cheers :smiley:

Happy learning :smiley:

2 Likes

Sir @pattyricarte can I know how you do it? I have the same scenario and I don’t know how to do it. Thank you.

1 Like

Hi @Robert_Russell_Monsalud

Use Find Files and Folders and gsuite and pass the filename that you want to search and it will return an ID if not returning ID it means that the file is not yet in the google drive folder.I hope it make sense.

cheers :smiley:

Happy learning :smiley:

2 Likes

Thank you Sir @pattyricarte. I will do your solution.

1 Like

No Worries @Robert_Russell_Monsalud

cheers :smiley:

Happy learning :smiley:

2 Likes