#!!!DEPRECATED!!! Google has implemented a way to find orphaned files and directories. Search "is:unorganized" on Google Drive to find orphaned files and folders. You can narrow search by using "is:unorganized owner:me" or "type:folder is:unorganized". For more detailed information: https://support.google.com/a/answer/6008339?hl=en
This is a Google Apps Script which finds orphan files and folders on one's Google Drive.
If an item in Google Drive loses all of its parent folders, it becomes orphan. The item still exists, but it may be a little hard to find. For more detailed information: https://support.google.com/a/answer/6008339?hl=en
Google Apps Script is a cloud based scripting language for light-weight application development in the Google Apps platform. For more information: https://developers.google.com/apps-script/
- Creates a starred Folder names "Lost+Found".
- Iterates all files and folders which belongs to you, or shared with you.
- If this file or folder is not in your "My Drive" or "Lost+Found", adds it to "Lost+Found"
- Go to this link and authorize it.
- The script will be run periodically on each 12 hours.
- You can found your rescued files on "Lost+Found" folder on your Starred section on Google Drive.
- If you want to de-authorize the script visit this link
- Go to this link and create a blank App Script file.
- Paste this source code on your Apps Script file.
- Now you can run your own code.