Package com.dropbox.core.v2
Class DbxPathV2
java.lang.Object
com.dropbox.core.v2.DbxPathV2
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 Details
-
DbxPathV2
public DbxPathV2()
-
-
Method Details
-
isValid
-
findError
-
getName
Returns just the last component of the path.getName("")→nullgetName("/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"
-