How to retrieve folder files from Google Cloud using PHP client library? -
i want retrieve files of folder in google cloud storage. searched lot cannot found anything. have tried this:
$bucket = $storageservice->objects->get(default_bucket,"myfolder/",array()); $getbucketmarkup = generatemarkup('get bucket', $bucket); print_r($getbucketmarkup);
i have solved putting 2 parameters of list objects in array 1 delimiter , second 1 prefix
$bucket = $storageservice->objects->listobjects(default_bucket,array( "delimiter"=>"/", "prefix"=>$folder_name ));
Comments
Post a Comment