Package com.dropbox.core.v1
Class DbxPathV1
java.lang.Object
com.dropbox.core.v1.DbxPathV1
Utility functions for working with Dropbox paths. This SDK uses
Strings
to represent paths.
Dropbox paths always start with with a slash ("/").
For full-Dropbox apps, the path is relative to the
root of the user's Dropbox. For App Folder apps,
the path is relative to the App Folder.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DbxPathV1
public DbxPathV1()
-
-
Method Details
-
isValid
-
findError
-
checkArg
-
checkArgNonRoot
-
getName
Returns just the last component of the path.getName("/")→"/"getName("/Photos")→"Photos"getName("/Photos/Home.jpeg")→"Home.jpeg"
-
split
-
getParent
Returns the parent path of the given path ornullif the path is"/".getParent("/")→nullgetParent("/Photos")→"/"getParent("/Photos/Recent/Home.jpeg")→"/Photos/Recent"
-