
The folder's id is much shorter than the file, but there is nothing else that helps me distinguish whether each object is a folder or a file. The first object below is a folder, and the second object is a file. Unfortunately, these objects don't directly tell me whether it is a folder or a document, but I've noticed that the folderIds are much shorter than the fileIds.

I'm using on a folderId, and receive an array of drive#childReference objects. The cache allows Drive for desktop to open your files faster. The directory stores data about files you open and make available offline.


If your cache directory path is unavailable, you can't use Drive for desktop. Currently, I am able to retrieve all files in a folder that does not contain any sub-folders, and I am trying to implement the next step of recursively looking through sub-folders and get'ing all the files within. If you stream My Drive files from Google Drive to your computer, file data is stored in a local cache on your hard drive. I am looking to get all files within a folder in Google Drive (given an initial folderId), including all files inside sub-folders.
