nao-pon/flysystem-google-drive

How to list files from shared with me ?

odaiderawi opened this issue · 3 comments

How to list files from shared with me ?

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

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));

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