diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-08-15 22:47:22 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-08-15 22:47:22 +0000 |
commit | c8bd2b4e2155476ec68078ded29b93d42f1bdd86 (patch) | |
tree | b18877f54fe2466a5d7910fa9e93aac93b0860b5 /bin/bbackupd/BackupClientDirectoryRecord.h | |
parent | f43529b2c37134b76e98239096419d96b325d4f9 (diff) |
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
Diffstat (limited to 'bin/bbackupd/BackupClientDirectoryRecord.h')
-rw-r--r-- | bin/bbackupd/BackupClientDirectoryRecord.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<BackupStoreDirectory::Entry *> &rEntriesLeftOver, std::vector<std::string> &rFiles, const std::vector<std::string> &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, |