summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2016-03-15 19:19:31 +0900
committerDaichi Hirono <hirono@google.com>2016-03-17 13:52:21 +0900
commitfc7fb7533f46b53247d1e6e6edca6e6c9ac676fe (patch)
tree06d72fc6a765384e2c78c4e277413c0ee2d7e4ea /tools/aapt2/diff/Diff.cpp
parent62006a72a66ddc5849b28d7ceaaa304b66aa3dc9 (diff)
Add suffix number when copying a file.
If we have an existing file in the destination directory, which has the same name with the source file, adding suffix number is DocumentsProvider's responsibility. Because MTP does not provide a way to check existance of files with given name, the logic is implemented as try-and error strategy. The CL lets If we MtpDocumentsProvider assume we have a file that shares the same name with the source file if it failed to invoke MtpDevice#sendObjectInfo. In this case MtpDocumentsProvider retry to invoke sendObjectInfo with new name with suffix number. BUG=26991190 Change-Id: I223ac5031f079bc91eb27709b0356f621a1ed55b
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions