diff options
author | Josh Gao <jmgao@google.com> | 2016-03-02 16:00:02 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-03-03 15:46:51 -0800 |
commit | 379612b1283c7289fbf21e1105b8bec9b0fed7ae (patch) | |
tree | 2786462f615c4b880e7f9195218bbd95ea838114 /adb/file_sync_client.cpp | |
parent | 48bc0d7853c34a174fa6c9ddd85c30a1b54b137d (diff) |
adb: mkdir the correct directory name when pulling.
The directory name should be based off of the local path, not the remote
path.
Change-Id: I75b089b8734e9dbf8e466b1e00ea18549fd101bb
(cherry picked from commit 89ec3a8d0feac727257b428a91b6f84b6a4b1395)
Diffstat (limited to 'adb/file_sync_client.cpp')
-rw-r--r-- | adb/file_sync_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp index 09e92bb6f8..6a9e163715 100644 --- a/adb/file_sync_client.cpp +++ b/adb/file_sync_client.cpp @@ -813,7 +813,7 @@ static bool remote_build_list(SyncConnection& sc, std::vector<copyinfo>* file_li std::vector<copyinfo> linklist; // Add an entry for the current directory to ensure it gets created before pulling its contents. - copyinfo ci(adb_dirname(lpath), adb_dirname(rpath), adb_basename(rpath), S_IFDIR); + copyinfo ci(adb_dirname(lpath), adb_dirname(rpath), adb_basename(lpath), S_IFDIR); file_list->push_back(ci); // Put the files/dirs in rpath on the lists. |