private static void HandleDirectory(string directory, ManifestIndex index, ref List <Descriptor> toDelete) { if (index.Ignored(directory)) { Utils.Log("Ignoring {0}", directory); return; } if (!index.Kept(directory)) { toDelete.Add(new Descriptor { Path = directory, Type = Descriptor.FileType.Directory }); } toDelete.AddRange(CollectForDeletion(directory, index)); }
private static void HandleFile(FileInfo file, ManifestIndex index, ref List <Descriptor> toDelete) { string absolute = FileUtils.NormalizePathForPlatform(file.FullName); if (index.Ignored(absolute)) { Utils.Log("Ignoring {0}", absolute); return; } if (IsHidden(file)) { return; } if (!index.Kept(absolute)) { toDelete.Add(new Descriptor { Path = absolute, Type = Descriptor.FileType.File }); } }
private static void HandleDirectory(string directory, ManifestIndex index, ref List<Descriptor> toDelete) { if (index.Ignored (directory)) { Utils.Log ("Ignoring {0}", directory); return; } if (!index.Kept (directory)) { toDelete.Add (new Descriptor { Path = directory, Type = Descriptor.FileType.Directory }); } toDelete.AddRange (CollectForDeletion (directory, index)); }
private static void HandleFile(FileInfo file, ManifestIndex index, ref List<Descriptor> toDelete) { string absolute = FileUtils.NormalizePathForPlatform (file.FullName); if (index.Ignored (absolute)) { Utils.Log ("Ignoring {0}", absolute); return; } if (IsHidden (file)) { return; } if (!index.Kept (absolute)) { toDelete.Add (new Descriptor { Path = absolute, Type = Descriptor.FileType.File }); } }