Class DbxPathV1

java.lang.Object
com.dropbox.core.v1.DbxPathV1

public class DbxPathV1 extends Object
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

    • DbxPathV1

      public DbxPathV1()
  • Method Details

    • isValid

      public static boolean isValid(String path)
    • findError

      public static String findError(String path)
    • checkArg

      public static void checkArg(String argName, String value)
    • checkArgNonRoot

      public static void checkArgNonRoot(String argName, String value)
    • getName

      public static String getName(String path)
      Returns just the last component of the path.
      • getName("/")"/"
      • getName("/Photos")"Photos"
      • getName("/Photos/Home.jpeg")"Home.jpeg"
    • split

      public static String[] split(String path)
    • getParent

      public static String getParent(String path)
      Returns the parent path of the given path or null if the path is "/".
      • getParent("/")null
      • getParent("/Photos")"/"
      • getParent("/Photos/Recent/Home.jpeg")"/Photos/Recent"