Package com.dropbox.core.v1
Class DbxDeltaC.Entry<MD extends Dumpable>
- java.lang.Object
-
- com.dropbox.core.util.Dumpable
-
- com.dropbox.core.v1.DbxDeltaC.Entry<MD>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DbxDeltaC.Entry.Reader<MD extends Dumpable>
For JSON parsing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dumpFields(DumpWriter out)
-
Methods inherited from class com.dropbox.core.util.Dumpable
getTypeName, toString, toString, toStringMultiline, toStringMultiline
-
-
-
-
Field Detail
-
lcPath
public final java.lang.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 isnull
, 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.
-
-
Method Detail
-
dumpFields
protected void dumpFields(DumpWriter out)
- Specified by:
dumpFields
in classDumpable
-
-