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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -