Class DbxDelta.Entry<MD extends Dumpable>

java.lang.Object
com.dropbox.core.util.Dumpable
com.dropbox.core.v1.DbxDelta.Entry<MD>
Type Parameters:
MD - The type of metadata being returned in the delta results.
Enclosing class:
DbxDelta<MD extends Dumpable>

public static final class DbxDelta.Entry<MD extends Dumpable> extends Dumpable
A single "delta entry" in a DbxDelta page.
  • Field Details

    • lcPath

      public final String lcPath
      The lower-cased path of the entry. Dropbox compares file paths in a case-insensitive manner. For example, an entry for "/readme.txt" should overwrite the entry for "/ReadMe.TXT".

      To get the original case-preserved path, look in the metadata field.

    • metadata

      public final MD extends Dumpable metadata
      If this is null, it means that this path doesn't exist on on Dropbox's copy of the file system. To update your local state to match, delete whatever is at that path, including any children. If your local state doesn't have anything at this path, ignore this entry.

      If this is not null, it means that Dropbox has a file/folder at this path with the given metadata. To update your local state to match, add the entry to your local state as well.

      • If the path refers to parent folders that don't exist yet in your local state, create those parent folders in your local state.
      • If the metadata is for a file, replace whatever your local state has at that path with the new entry.
      • If the metadata is for a folder, check what your local state has at the path. If it's a file, replace it with the new entry. If it's a folder, apply the new metadata to the folder, but do not modify the folder's children.
  • Constructor Details

  • Method Details