com.dropbox.client2
Class DropboxAPI.DeltaEntry<MD>
java.lang.Object
com.dropbox.client2.DropboxAPI.DeltaEntry<MD>
- Enclosing class:
- DropboxAPI<SESS_T extends Session>
public static final class DropboxAPI.DeltaEntry<MD>
- extends Object
A single entry in a DeltaPage.
|
Field Summary |
String |
lcPath
The lower-cased path of the entry. |
MD |
metadata
If this is null, it means that this path doesn't exist on
on Dropbox's copy of the file system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 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.
DropboxAPI.DeltaEntry
public DropboxAPI.DeltaEntry(String lcPath,
MD metadata)
Copyright © 2012. All Rights Reserved.