diff options
Diffstat (limited to 'src/3rdParty/efsw/DirectorySnapshotDiff.cpp')
-rwxr-xr-x | src/3rdParty/efsw/DirectorySnapshotDiff.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/DirectorySnapshotDiff.cpp b/src/3rdParty/efsw/DirectorySnapshotDiff.cpp new file mode 100755 index 0000000..37ee507 --- /dev/null +++ b/src/3rdParty/efsw/DirectorySnapshotDiff.cpp | |||
@@ -0,0 +1,22 @@ | |||
1 | #include <efsw/DirectorySnapshotDiff.hpp> | ||
2 | |||
3 | namespace efsw { | ||
4 | |||
5 | void DirectorySnapshotDiff::clear() { | ||
6 | FilesCreated.clear(); | ||
7 | FilesModified.clear(); | ||
8 | FilesMoved.clear(); | ||
9 | FilesDeleted.clear(); | ||
10 | DirsCreated.clear(); | ||
11 | DirsModified.clear(); | ||
12 | DirsMoved.clear(); | ||
13 | DirsDeleted.clear(); | ||
14 | } | ||
15 | |||
16 | bool DirectorySnapshotDiff::changed() { | ||
17 | return !FilesCreated.empty() || !FilesModified.empty() || !FilesMoved.empty() || | ||
18 | !FilesDeleted.empty() || !DirsCreated.empty() || !DirsModified.empty() || | ||
19 | !DirsMoved.empty() || !DirsDeleted.empty(); | ||
20 | } | ||
21 | |||
22 | } // namespace efsw | ||