Inherits from NSObject
Conforms to NSCopying
Declared in DBPath.h

Overview

The path object represents a valid Dropbox path, and knows how to do correct path comparisons. It also has convenience methods for constructing new paths.

Tasks

  • + root

    The top-most folder in your app’s view of the user’s Dropbox.

  • – initWithString:

    Create a new path object from a string. Some special characters, names, or encodings a are not allowed in a Dropbox path. For more details see this article.

  • – name

    The name of the path.

  • – childPath:

    Create a new path by treating the current path as a path to a folder, and childName as the filename of an item in that folder.

  • – parent

    Create a new path that is the containing folder of the current path.

  • – stringValue

    The path (relative to the root) as a string, with original casing.

Class Methods

root

The top-most folder in your app’s view of the user’s Dropbox.

+ (DBPath *)root

Declared In

DBPath.h

Instance Methods

childPath:

Create a new path by treating the current path as a path to a folder, and childName as the filename of an item in that folder.

- (DBPath *)childPath:(NSString *)childName

Return Value

A new path, or nil if childName is invalid.

Declared In

DBPath.h

initWithString:

Create a new path object from a string. Some special characters, names, or encodings a are not allowed in a Dropbox path. For more details see this article.

- (id)initWithString:(NSString *)pathStr

Return Value

A new path object if the contents of pathStr are a valid Dropbox path, nil otherwise.

Declared In

DBPath.h

name

The name of the path.

- (NSString *)name

Declared In

DBPath.h

parent

Create a new path that is the containing folder of the current path.

- (DBPath *)parent

Return Value

A new path, or nil if path is already at the root.

Declared In

DBPath.h

stringValue

The path (relative to the root) as a string, with original casing.

- (NSString *)stringValue

Declared In

DBPath.h