I am downloading files from google drive and uploading it to another website.
I have applied forever while loop because as soon a file is modified it will download that file from drive folder and upload to the website.
I have applied another condition that if in case the file is modified in last 10 minutes it will take that file only. But lets say if there are 3 files which were modified in the last 10 minutes, it keeps on downloading those files again and again and uploads on the website. Because it is a forever loop.
Can anyone help me with the logic that if a particular file of a particular time stamp has been downloaded from the drive, it does not download that file again.
Create one list of string and add that File name and Timestamp once the file got downloaded from drive. And then check list contains that item before downloading that file. If it contains that item skip the downloading else download it.
I understand but how would i do it…First i am making a new list…then iterating each items in the list and checking if the time stamp is not present in the list(will be true since the list is empty right now)…then download that file and add that files timestamp to list.
Then do this again.
But it is not entering the for each loop of the list. What am i doing wrong here?
as soon as there is a new file or an old file is modified, I want to download it and upload on the website. 10 mins should also work. The above screenshots that i provided, in that it is not entering the for each item loop.
Rest everything is fine. Just want to make sure that if a file has been downloaded then when the forever while loop repeats, it should not pick that file. This bot has to be run for 12 hours everyday.
Hi @Nithinkrishna
I am not using viewed by me time anywhere in my project. Only using ModifiedTime and it remains the same whether we download a file or do whatever unless the file is not renamed or modified.
Hey @Nithinkrishna
I checked this but i am getting a blank value everytime in ViewedByMeTime. even after downloading the sheet it is giving me blank value