bionary's avatar

Filesystem and Google Drive

I'm looking to browse and download image files stored in google drive.

I've installed the nao-pon/flysystem-google-drive package via composer and have been able to navigate the Google Drive directories with Laravel's Filesystem

Storage::disk('google')->directories();//works fine

I cannot make sense of how the filesystem is useful for viewing file information or determining what files to download though.

I realize that google "files" can have the same name so each file is given a unique ID. That's the problem.

Both Storage::disk('google')->mimetype('abc123googleid'); and Storage::disk('google')->size('abc123googleid'); work but that's hardly enough information about a file...I cannot find any more information than that. ?

I need to loop through the files stored on Google Drive and download only certain image files based on their names.

I would love some advice on this, thanks!

0 likes
3 replies
bionary's avatar

Wow, nobody has encountered this need?

Please or to participate in this conversation.