Loading adb/file_sync_client.cpp +2 −6 Original line number Original line Diff line number Diff line Loading @@ -545,9 +545,7 @@ static bool copy_local_dir_remote(SyncConnection& sc, std::string lpath, std::string rpath, bool check_timestamps, std::string rpath, bool check_timestamps, bool list_only) { bool list_only) { // Make sure that both directory paths end in a slash. // Make sure that both directory paths end in a slash. if (lpath.empty() || rpath.empty()) { // Both paths are known to exist, so they cannot be empty. return false; } if (lpath.back() != '/') { if (lpath.back() != '/') { lpath.push_back('/'); lpath.push_back('/'); } } Loading Loading @@ -717,9 +715,7 @@ static int set_time_and_mode(const char *lpath, time_t time, unsigned int mode) static bool copy_remote_dir_local(SyncConnection& sc, std::string rpath, static bool copy_remote_dir_local(SyncConnection& sc, std::string rpath, std::string lpath, bool copy_attrs) { std::string lpath, bool copy_attrs) { // Make sure that both directory paths end in a slash. // Make sure that both directory paths end in a slash. if (rpath.empty() || lpath.empty()) { // Both paths are known to exist, so they cannot be empty. return false; } if (rpath.back() != '/') { if (rpath.back() != '/') { rpath.push_back('/'); rpath.push_back('/'); } } Loading Loading
adb/file_sync_client.cpp +2 −6 Original line number Original line Diff line number Diff line Loading @@ -545,9 +545,7 @@ static bool copy_local_dir_remote(SyncConnection& sc, std::string lpath, std::string rpath, bool check_timestamps, std::string rpath, bool check_timestamps, bool list_only) { bool list_only) { // Make sure that both directory paths end in a slash. // Make sure that both directory paths end in a slash. if (lpath.empty() || rpath.empty()) { // Both paths are known to exist, so they cannot be empty. return false; } if (lpath.back() != '/') { if (lpath.back() != '/') { lpath.push_back('/'); lpath.push_back('/'); } } Loading Loading @@ -717,9 +715,7 @@ static int set_time_and_mode(const char *lpath, time_t time, unsigned int mode) static bool copy_remote_dir_local(SyncConnection& sc, std::string rpath, static bool copy_remote_dir_local(SyncConnection& sc, std::string rpath, std::string lpath, bool copy_attrs) { std::string lpath, bool copy_attrs) { // Make sure that both directory paths end in a slash. // Make sure that both directory paths end in a slash. if (rpath.empty() || lpath.empty()) { // Both paths are known to exist, so they cannot be empty. return false; } if (rpath.back() != '/') { if (rpath.back() != '/') { rpath.push_back('/'); rpath.push_back('/'); } } Loading