How to test the existence of docs in Google Drive?

The description of the situation:
I have an old full backup of a local Google Drive folder, Cobian Backup is made.
In the directory with the backup is multiple files (more than 1000) in Google Docs format with the extension *.gdoc, *.gsheet, etc. it is Clear that the files are nothing but references to the location of the document in Google Drive, no. This is an account GD. Files there has long been mixed: some removed completely, some are in the basket GD, some moved to a different folder, some are in the same place, some stopped sharing.

To restore to a separate folder on Google Drive documents from a local backup and to check their validity (existence) in the current GD.
July 2nd 19 at 14:03
1 answer
July 2nd 19 at 14:05

Find more questions by tags Google Drive