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); }
private static void CopyNewOrChangedFolders(string src, string dst, Glob[] includes, Glob[] excludes) { foreach (string srcFolder in Directory.EnumerateDirectories(src)) { string name; string dstFolder; name = Path.GetFileName(srcFolder); dstFolder = Path.Combine(dst, name); if (name != ".svn") { SimpleFolderSync.SyncFolders(srcFolder, dstFolder, includes, excludes); } } }