/**
  * Get all the meta data of a file or directory.
  *
  * @param string $path
  *
  * @return array|false
  */
 public function getMetadata($path)
 {
     try {
         return $this->normalizeMetadata($this->api->resource($path));
     } catch (\Exception $e) {
         return false;
     }
 }
예제 #2
0
 public function testSetUploadPreset()
 {
     $api = new ApiFacade();
     $api->setUploadPreset('preset');
     $this->assertEquals('preset', \Cloudinary::config_get('upload_preset'));
 }