static bRC endRestoreFile(bpContext *ctx);
static bRC createFile(bpContext *ctx, struct restore_pkt *rp);
static bRC setFileAttributes(bpContext *ctx, struct restore_pkt *rp);
+static bRC checkFile(bpContext *ctx, char *fname);
static pFuncs pluginFuncs = {
sizeof(pluginFuncs),
endRestoreFile,
pluginIO,
createFile,
- setFileAttributes
+ setFileAttributes,
+ checkFile,
};
extern "C" {
_DebugMessage(100, "setFileAttributes\n");
return bRC_OK;
}
+
+static bRC checkFile(bpContext *ctx, char *fname)
+{
+ exchange_fd_context_t *context = (exchange_fd_context_t *)ctx->pContext;
+ _DebugMessage(100, "checkFile\n");
+ /* previous files are always Seen */
+ return bRC_Seen;
+}
+
{
if (GetFileTime(handle, NULL, NULL, &modified_time) == 0)
{
- //_JobMessage(M_WARNING, "Could check last modified date for '%S' (0x%08x), including anyway\n", tmp_logfile_ptr, GetLastError());
+ //_JobMessage(M_WARNING, "Could not check last modified date for '%S' (0x%08x), including anyway\n", tmp_logfile_ptr, GetLastError());
include_file = true;
}
}
logfile_ptr += wcslen(logfile_ptr) + 1;
//_DebugMessage(100, "Including file %S\n", logfile_ptr);
}
+#if 0
+/* this is handled via checkFile now */
else
{
if (context->accurate) {
delete tmp;
}
}
+#endif
if (handle != INVALID_HANDLE_VALUE)
CloseHandle(handle);