예제 #1
0
 public static bool IsUptodate(string source, string target, ReportErrorCallback reportErrorCallback, LogCallback logCallback, bool check_contents = false, bool check_stamp = true)
 {
     try {
         FileCopier.reportErrorCallback = reportErrorCallback;
         FileCopier.logCallback         = logCallback;
         return(IsUptodate(source, target, check_contents, check_stamp));
     } finally {
         FileCopier.reportErrorCallback = null;
         FileCopier.logCallback         = null;
     }
 }
예제 #2
0
 public static bool IsUptodate(IEnumerable <string> sources, IEnumerable <string> targets, ReportErrorCallback reportErrorCallback, LogCallback logCallback, bool check_stamp = true)
 {
     try {
         FileCopier.reportErrorCallback = reportErrorCallback;
         FileCopier.logCallback         = logCallback;
         return(IsUptodate(sources, targets, check_stamp));
     } finally {
         FileCopier.reportErrorCallback = null;
         FileCopier.logCallback         = null;
     }
 }
예제 #3
0
 public static void UpdateDirectory(string source, string target, ReportErrorCallback reportErrorCallback, LogCallback logCallback)
 {
     try {
         FileCopier.reportErrorCallback = reportErrorCallback;
         FileCopier.logCallback         = logCallback;
         UpdateDirectory(source, target);
     } finally {
         FileCopier.reportErrorCallback = null;
         FileCopier.logCallback         = null;
     }
 }