public static void SyncFolders(string src, string dst, StringCollection includeGlobs, StringCollection excludeGlobs) { Glob[] includes; Glob[] excludes; includes = GlobMatcher.PrepareGlobs(includeGlobs); excludes = GlobMatcher.PrepareGlobs(excludeGlobs); SimpleFolderSync.SyncFolders(src, dst, includes, excludes); }
public static bool IsIncluded(StringCollection files, StringCollection includeGlobs) { bool result; Glob[] includes; result = false; includes = GlobMatcher.PrepareGlobs(includeGlobs); for (int i = 0; i < files.Count; i++) { if (GlobMatcher.IsIncluded(files[i], includes)) { result = true; break; } } return(result); }