Class DbxPathV2

java.lang.Object
com.dropbox.core.v2.DbxPathV2

public class DbxPathV2 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

    • DbxPathV2

      public DbxPathV2()
  • Method Details

    • isValid

      public static boolean isValid(String path)
    • findError

      public static String findError(String path)
    • getName

      public static String getName(String path)
      Returns just the last component of the path.
      • getName("")null
      • 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"