How to loop through all images store in my google drive?

Hello everyone,
Can you please tell me that with the help of uipath activities, how to loop through all images store in a folder in my google drive?
I want to get one by one images and work on those images.

1 Like

Hi @Subhamay_Maity ,

You can use https://docs.uipath.com/activities/docs/google-drive-application-scope
and inside the Google drive application scope, use Find Files and Folder activity

That will give you a collection of files which matches your criteria, as output
Iterate on the collection, and you can download the file using Download File activity

https://docs.uipath.com/activities/docs/gsuite-download-file

But how to loop through each images one-by-one?

1 Like

Hi @Subhamay_Maity ,
the Find Files and Folder will return an array of files from google drive.

You can use for each or any other looping method to iterate on the array.

Thanks,
Shan KM

Hello @Subhamay_Maity

You can refer to the below video.

1 Like

@Rahul_Unnikrishnan
The video is very useful for the people who is new to GCP too, Good work :+1:

1 Like

@Rahul_Unnikrishnan Thank you

1 Like

Download File: File not found: Google.Apis.Drive.v3.Data.File. [404], this error is showing while I am going to loop using the output variable Result of **Find Files and Folder ** to get one by one images inside a folder.
Please help to solve this @shankm , @Rahul_Unnikrishnan

Did you tried to print the file name details in a message box? if you use find files and folder it will be in a array.

I used one for each loop through Result Variable and print, then output is coming “Google.Apis.Drive.v3.Data.Files” only once.

can you put a dot (.) with the output variable to see any methods are available.

yeah, lots of method are available.

hi i have 855 images that stored in Google drive and i want read these images into google colab. i wrote a convolutional neural network in google colab and i want to write for loop for these images.
my images are Frames of River video that extracted from river video.
below image is my codes in google colab that i must write for loop in these images