nao-pon / flysystem-google-drive

Flysystem adapter for Google Drive
MIT License
352 stars 128 forks source link

How to list files from shared with me ? #84

Closed odaiderawi closed 1 month ago

PaolaRuby commented 3 years ago

using files.list with the query string 'q'='sharedWithMe' because it only lists the children’s of Shared With Me

w99910 commented 3 years ago

I tried as you mentioned but it didn't work as expected. The shared-files are not listed in returned collection.

$adapter = new GoogleDriveAdapter($service, 'root',['defaultParams' => ['files.list'=>['q'=>'sharedWithMe']],]);

$filesystem = new \League\Flysystem\Filesystem($adapter);

$filesystem->listContents('/', false));
PaolaRuby commented 3 years ago

It's wrong, I write it fine, read the docs