summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupClientDirectoryRecord.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-01-16 23:25:44 +0000
committerChris Wilson <chris+github@qwirx.com>2007-01-16 23:25:44 +0000
commitaa42fa6e400d0f682e7dc9b1cd78e6575457f2d7 (patch)
tree5cc31a071659cb24076d875f806f79bccf835ef0 /bin/bbackupd/BackupClientDirectoryRecord.cpp
parente2589c461b68ad47b417e4969e1b51ef4f40447c (diff)
Allow suppressing warnings about unsupported file types by excluding those
files by name, using ExcludeFile (refs #3)
Diffstat (limited to 'bin/bbackupd/BackupClientDirectoryRecord.cpp')
-rw-r--r--bin/bbackupd/BackupClientDirectoryRecord.cpp21
1 files changed, 16 insertions, 5 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp
index 217359e5..1cc10d99 100644
--- a/bin/bbackupd/BackupClientDirectoryRecord.cpp
+++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp
@@ -349,11 +349,22 @@ void BackupClientDirectoryRecord::SyncDirectory(BackupClientDirectoryRecord::Syn
}
else
{
- rParams.GetProgressNotifier()
- .NotifyUnsupportedFileType(
- this, filename);
- SetErrorWhenReadingFilesystemObject(
- rParams, filename.c_str());
+ if(rParams.mrContext.ExcludeFile(filename))
+ {
+ rParams.GetProgressNotifier()
+ .NotifyFileExcluded(
+ this,
+ filename);
+ }
+ else
+ {
+ rParams.GetProgressNotifier()
+ .NotifyUnsupportedFileType(
+ this, filename);
+ SetErrorWhenReadingFilesystemObject(
+ rParams, filename.c_str());
+ }
+
continue;
}