Bundle Paths

A BundlePath is a single bundlepath in the associated Bundle.

Update Bundle Path

SDK Function

bundle.updateBundle();

Return Object

BundlePath

Authorization Requirement

Available to all authenticated keys or sessions.

Attribute Setters

SetterDescription
setPath
string
Required
Path to operate on.
setRecursive
boolean
Required
Allow access to subfolders content?

Example Request

import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.Bundle;
import com.files.models.BundlePath;

try {
  HashMap<String, Object> attributes = new HashMap<>();
  Bundle bundle = new Bundle(attributes);
  HashMap<String, Object> parameters = new HashMap<>();
  parameters.put("recursive", true);
  bundle.updateBundle(parameters);
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The BundlePath Object

Some of the functions 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.