Merge "adb: pull empty directories."
diff --git a/file_sync_client.cpp b/file_sync_client.cpp
index 00c4b2e..7f34ade 100644
--- a/file_sync_client.cpp
+++ b/file_sync_client.cpp
@@ -573,9 +573,7 @@
std::string rpath, bool check_timestamps,
bool list_only) {
// Make sure that both directory paths end in a slash.
- if (lpath.empty() || rpath.empty()) {
- return false;
- }
+ // Both paths are known to exist, so they cannot be empty.
if (lpath.back() != '/') {
lpath.push_back('/');
}
@@ -761,9 +759,7 @@
static bool copy_remote_dir_local(SyncConnection& sc, std::string rpath,
std::string lpath, bool copy_attrs) {
// Make sure that both directory paths end in a slash.
- if (rpath.empty() || lpath.empty()) {
- return false;
- }
+ // Both paths are known to exist, so they cannot be empty.
if (rpath.back() != '/') {
rpath.push_back('/');
}