summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupClientDirectoryRecord.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-12-10 23:39:29 +0000
committerChris Wilson <chris+github@qwirx.com>2014-12-10 23:39:29 +0000
commit367f72f8605d8a768779c63f9eeb9c57b8abf332 (patch)
tree51436ffca7ede1ddaa695215fc75bb8bf9a60226 /bin/bbackupd/BackupClientDirectoryRecord.h
parent58b24c1b81742a72f72b6888fb1116cc3257e975 (diff)
Refactor SyncDirectory to reduce indentation and method length.
Move most of the code for handling individual directory entries into a separate method, SyncDirectoryEntry.
Diffstat (limited to 'bin/bbackupd/BackupClientDirectoryRecord.h')
-rw-r--r--bin/bbackupd/BackupClientDirectoryRecord.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.h b/bin/bbackupd/BackupClientDirectoryRecord.h
index b6472b0f..36af241a 100644
--- a/bin/bbackupd/BackupClientDirectoryRecord.h
+++ b/bin/bbackupd/BackupClientDirectoryRecord.h
@@ -141,6 +141,17 @@ public:
const Location& rBackupLocation,
bool ThisDirHasJustBeenCreated = false);
+ bool SyncDirectoryEntry(SyncParams &rParams,
+ ProgressNotifier& rNotifier,
+ const Location& rBackupLocation,
+ const std::string &rDirLocalPath,
+ MD5Digest& currentStateChecksum,
+ struct dirent *en,
+ EMU_STRUCT_STAT dir_st,
+ std::vector<std::string>& rDirs,
+ std::vector<std::string>& rFiles,
+ bool& rDownloadDirectoryRecordBecauseOfFutureFiles);
+
std::string ConvertVssPathToRealPath(const std::string &rVssPath,
const Location& rBackupLocation);