summaryrefslogtreecommitdiff
path: root/file_hierarchy.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:18 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:18 +0200
commitbcc5cc28c6dc5178e8f4fd0cc521034ae5def388 (patch)
treebacc60d27b435d32172f97643576c5e4e953177d /file_hierarchy.h
parent5.9 (diff)
downloadFreeFileSync-bcc5cc28c6dc5178e8f4fd0cc521034ae5def388.tar.gz
FreeFileSync-bcc5cc28c6dc5178e8f4fd0cc521034ae5def388.tar.bz2
FreeFileSync-bcc5cc28c6dc5178e8f4fd0cc521034ae5def388.zip
5.10
Diffstat (limited to 'file_hierarchy.h')
-rw-r--r--file_hierarchy.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/file_hierarchy.h b/file_hierarchy.h
index 5a5b5818..18f46ea3 100644
--- a/file_hierarchy.h
+++ b/file_hierarchy.h
@@ -245,7 +245,8 @@ public:
template <SelectedSide side> const Zstring& getBaseDirPf() const; //base sync directory postfixed with FILE_NAME_SEPARATOR (or empty!)
static void removeEmpty(BaseDirMapping& baseDir) { baseDir.removeEmptyRec(); }; //physically remove all invalid entries (where both sides are empty) recursively
- template <SelectedSide side> bool wasExisting() const; //status of directory existence at the time of comparison!
+ template <SelectedSide side> bool isExisting() const; //status of directory existence at the time of comparison!
+ template <SelectedSide side> void setExisting(bool value); //update after creating the directory in FFS
//get settings which were used while creating BaseDirMapping
const HardFilter& getFilter() const { return *filter_; }
@@ -988,18 +989,29 @@ void DirMapping::removeObjectR()
template <> inline
-bool BaseDirMapping::wasExisting<LEFT_SIDE>() const
+bool BaseDirMapping::isExisting<LEFT_SIDE>() const
{
return dirExistsLeft_;
}
-
template <> inline
-bool BaseDirMapping::wasExisting<RIGHT_SIDE>() const
+bool BaseDirMapping::isExisting<RIGHT_SIDE>() const
{
return dirExistsRight_;
}
+template <> inline
+void BaseDirMapping::setExisting<LEFT_SIDE>(bool value)
+{
+ dirExistsLeft_ = value;
+}
+
+template <> inline
+void BaseDirMapping::setExisting<RIGHT_SIDE>(bool value)
+{
+ dirExistsRight_ = value;
+}
+
inline
void FileMapping::flip()
bgstack15