/// <summary> /// method of starting recursive traversal /// </summary> /// <param name="s">root of the bypass folder</param> /// <param name="obj">serialization object</param> public void Open(Sinhronizer obj) { if (!Directory.Exists(this.Root)) { OperatinDirectory.CrieteDirectory(this.Root); } base.WalkRir(new DirectoryInfo(this.Root), files, dir, obj, (int)Nums.Zero, dir.Count == (int)Nums.Zero); }
/// <summary> /// method for create folders /// </summary> public void CreateDir() { foreach (var dir in this.import.Dir) { var buf = string.Format("{0}\\{1}", this.export.Root, dir.Remove((int)Nums.Zero, this.import.Root.Length)); if (!Directory.Exists(buf)) { this.export.AddNewDir(buf); OperatinDirectory.CrieteDirectory(buf); } } }