Bundle Paths

A BundlePath is a single bundlepath in the associated Bundle.

Update Bundle Path

SDK Method

bundle.update_bundle()

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

import files_sdk

try:
  # Find the bundle object by its id.
  bundle = files_sdk.bundle.find(id)
  bundle.update_bundle({
    "recursive": True
  })
except files_sdk.error.NotAuthenticatedError as err:
  print(f"Authentication Error Occurred ({type(err).__name__}):", err)
except files_sdk.error.Error as err:
  print(f"Unknown Error Occurred ({type(err).__name__}):", err)

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.