You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
In Google Drive, if a file or a folder does not have any parents (including the root a.k.a. "My Drive") it becomes orphaned, and cannot be seen in the web GUI. It's also mentioned in this Google support article I'm also quoting related part here:
If you create a file in Drive that you later can’t find, the file might have lost all of its parent folders. It becomes an orphaned file. The file still exists but is harder to find.
How files lose their folder
Here's how a file can become orphaned:
You create a file in someone else's folder. Then they delete the folder. Your file isn't deleted because only you can do that. But it’s no longer in a folder.
Or, you share a folder with someone who removes your file from the folder. Again, the file isn't deleted, but it's no longer in a folder.
Find your orphaned files
In the Drive search field, type: is:unorganized owner:me.
When you find the file, move it to a folder in My Drive so it’s easier to find next time.
Problem
Although it is possible from web GUI to search such files with is:unorganized owner:me we cannot do that from the API. Google internally uses unparented = true to correspond is:unorganized but didn't make it available for public API.
In order to find such files, an efficient mechanism needed to index all files and find the ones that has their parents field empty. And move them under a new folder e.g. lost+found
The text was updated successfully, but these errors were encountered:
Overview
In Google Drive, if a file or a folder does not have any parents (including the root a.k.a. "My Drive") it becomes orphaned, and cannot be seen in the web GUI. It's also mentioned in this Google support article I'm also quoting related part here:
Problem
Although it is possible from web GUI to search such files with
is:unorganized owner:me
we cannot do that from the API. Google internally usesunparented = true
to correspondis:unorganized
but didn't make it available for public API.In order to find such files, an efficient mechanism needed to index all files and find the ones that has their parents field empty. And move them under a new folder e.g.
lost+found
The text was updated successfully, but these errors were encountered: