8000 Automated Spec Update (#382) · dropbox/dropbox-sdk-python@6f03744 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f03744

Browse files
DropboxBotEugene Che
andauthored
Automated Spec Update (#382)
d439f00c77d82184d4d14c783166f372c8f03dd1 Change Notes: files Namespace Add api_proxy_dev_check_api_v2_service namespace Add api_proxy_dev_check_api_v2_types namespace Co-authored-by: Eugene Che <eugeneyche@dropbox.com> Co-authored-by: DropboxBot <DropboxBot@users.noreply.github.com> Co-authored-by: Eugene Che <eugeneyche@dropbox.com>
1 parent cc8b186 commit 6f03744

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

dropbox/files.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10120,10 +10120,14 @@ class WriteMode(bb.Union):
1012010120
:ivar files.WriteMode.overwrite: Always overwrite the existing file. The
1012110121
autorename strategy is the same as it is for ``add``.
1012210122
:ivar str files.WriteMode.update: Overwrite if the given "rev" matches the
10123-
existing file's "rev". The autorename strategy is to append the string
10124-
"conflicted copy" to the file name. For example, "document.txt" might
10125-
become "document (conflicted copy).txt" or "document (Panda's conflicted
10126-
copy).txt".
10123+
existing file's "rev". The supplied value should be the latest known
10124+
"rev" of the file, for example, from :type:`FileMetadata`, from when the
10125+
file was last downloaded by the app. This will cause the file on the
10126+
Dropbox servers to be overwritten if the given "rev" matches the
10127+
existing file's current "rev" on the Dropbox servers. The autorename
10128+
strategy is to append the string "conflicted copy" to the file name. For
10129+
example, "document.txt" might become "document (conflicted copy).txt" or
10130+
"document (Panda's conflicted copy).txt".
1012710131
"""
1012810132

1012910133
_catch_all = None
@@ -10170,9 +10174,14 @@ def is_update(self):
1017010174
def get_update(self):
1017110175
"""
1017210176
Overwrite if the given "rev" matches the existing file's "rev". The
10173-
autorename strategy is to append the string "conflicted copy" to the
10174-
file name. For example, "document.txt" might become "document
10175-
(conflicted copy).txt" or "document (Panda's conflicted copy).txt".
10177+
supplied value should be the latest known "rev" of the file, for
10178+
example, from :class:`FileMetadata`, from when the file was last
10179+
downloaded by the app. This will cause the file on the Dropbox servers
10180+
to be overwritten if the given "rev" matches the existing file's current
10181+
"rev" on the Dropbox servers. The autorename strategy is to append the
10182+
string "conflicted copy" to the file name. For example, "document.txt"
10183+
might become "document (conflicted copy).txt" or "document (Panda's
10184+
conflicted copy).txt".
1017610185
1017710186
Only call this if :meth:`is_update` is true.
1017810187

0 commit comments

Comments
 (0)
0