I am trying to automate the downloading of files from a Google Drive shared folder. The contents of the folder change daily. The folder is shared to anyone with a link to the folder.
My problem is that the query does not return the new files that I have not opened yet unless I open the new files in Google Drive.
folder_id = 'xxxx...xxx'
results = drive_service.files().list(q=f"parents in '{folder_id}' and trashed = false", fields="nextPageToken, files(id, name)").execute()
Is there a way to list files in a shared folder that I have not opened yet?
I tried to negate the sharedWithMe field but it does not work.