Bundle Paths

A BundlePath is a single bundlepath in the associated Bundle.

Update Bundle Path

SDK Method

$bundle->updateBundle;

Return Object

BundlePath

Authorization Requirement

Available to all authenticated keys or sessions.

Method Arguments

ArgumentDescription
path
string
Required
Path to operate on.
recursive
boolean
Required
Allow access to subfolders content?

Example Request

try {
  $bundle = new \Files\Model\Bundle();
  $bundle->updateBundle([
    'recursive' => true
  ]);
} catch (\Files\Exception\NotAuthenticatedException $e) {
  echo 'Authentication Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
} catch (\Files\Exception\FilesException $e) {
  echo 'Unknown Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
}

The BundlePath Object

Some of the methods above return a BundlePath object. The attributes of this object are listed below.

AttributeDescription
recursive
boolean
Allow access to subfolders content?
path
string
The path to the resource relative to filesystem. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.