google-drive-ruby icon indicating copy to clipboard operation
google-drive-ruby copied to clipboard

Can't get subcollections in folder

Open KarenXuan opened this issue 6 years ago • 2 comments

I want to get subcollections in a special folder, I have folder id, and I get folder by session.file_by_id, I can see the output as: "Root Folder Test, https://drive.google.com/drive/folders/0B1FLMKfTaZZ4sXd5TDdEO99W31M, class: GoogleDrive::Collection" But when I call root_folder.subcollections, it return an empty array, and also I really see a folder called "fastlane" in the folder "test", but I call file_by_title("fastlane") or subcollection_by_title(fastlane), they all return nil. So how can I get the subfolder?

By the way, my test folder is on the team driver, but I think since I can get folder by id, why I can't get folder by title?

KarenXuan avatar Apr 10 '19 10:04 KarenXuan

Facing same issue

gaurav-cf avatar Sep 24 '19 09:09 gaurav-cf

Having the same problem. It seems to be a Shared Drive issue only.

katyakinane avatar Jul 04 '20 12:07 katyakinane