From c8bd2b4e2155476ec68078ded29b93d42f1bdd86 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 15 Aug 2014 22:47:22 +0000 Subject: Move code for creating/renaming remote dir to match local dir into own method. Reduces code indentation, scope leakage, and length of a long method. Conflicts: bin/bbackupd/BackupClientDirectoryRecord.h --- bin/bbackupd/BackupClientDirectoryRecord.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/bbackupd/BackupClientDirectoryRecord.h') diff --git a/bin/bbackupd/BackupClientDirectoryRecord.h b/bin/bbackupd/BackupClientDirectoryRecord.h index 1f737839..5af4d9ac 100644 --- a/bin/bbackupd/BackupClientDirectoryRecord.h +++ b/bin/bbackupd/BackupClientDirectoryRecord.h @@ -159,6 +159,12 @@ private: std::vector &rEntriesLeftOver, std::vector &rFiles, const std::vector &rDirs); + int64_t CreateRemoteDir(const std::string& localDirPath, + const std::string& nonVssDirPath, + const std::string& remoteDirPath, + BackupStoreFilenameClear& storeFilename, + bool* pHaveJustCreatedDirOnServer, + BackupClientDirectoryRecord::SyncParams &rParams); int64_t UploadFile(SyncParams &rParams, const std::string &rFilename, const std::string &rNonVssFilePath, -- cgit v1.2.3