Uploading files to Google Drive


I want to upload files to google drive.

First the bot should check if a folder (datetoday) is existing, if not it will create the folder and upload the file.
Second, if the folder (datetoday) is existing, it will upload the file in that folder.


Find Files and Folders returns array of Google.Apis.Drive.v3.Data.File.
So you can check it if the array contains any items as the following.

However, it might be also need to check if it’s folder etc because the activity might return some items.


same result still cannot check if the folder exist. it will still create a new folder