![]() List specific folder contents $contents = $fs-> listContents( 'MyFolder', true /* is_recursive */) File upload // Upload a file $local_filepath = '/home/user/downloads/file_to_upload.ext' $fs = new \ League\ Flysystem\ Filesystem( $adapter, new \ League\ Flysystem\ Config()) // List selected root folder contents $contents = $fs-> listContents( '', true /* is_recursive */) variant 3: connect to team drive $adapter3 = new \ Masbug\ Flysystem\ GoogleDriveAdapter( */ 'quotaUser' => ( string) $some_unique_per_user_id Otherwise the quota would be per client IP. * This example tells the remote server to perform quota checks per unique user id. 'useDisplayPaths' => true, /* this is the default */ /* These are global parameters sent to server along with per API parameters. ![]() variant 2: with extra options and query parameters $adapter2 = new \ Masbug\ Flysystem\ GoogleDriveAdapter( variant 1 $adapter = new \ Masbug\ Flysystem\ GoogleDriveAdapter( $service, 'My_App_Root') $service = new \ Google\ Service\ Drive( $client) $client-> setApplicationName( 'My Google Drive App')
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |