I just wanted to see folders and files under root directory when i set ‘root’ in parents in Q, but I can see only one file titled “Get started” pdf file. (I used C# code)
<I don't know whether this question is answered or not, so I am replying. I was facing the issue when I was using name='root'
. It was returning me the list of files and folders but some were missing.
I found somewhere and modified the 'Q' string with the following and it is now showing me the right information.
('root' in parents)
If the only file you are seeing is “Get started” pdf file that is a sure sign that you are using a service account for authentication.
Service accounts are not you. Think of it as a dummy user it has its own google drive account which by default has no files.
Options:
Tip: If you are allowing the service account to upload files to your personal google drive account remember to have it grant your personal user permissions to access the files using permissions.create method or you are going to have files on your drive account that you dont have permissions to access.