コード例 #1
0
        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));
        }
コード例 #2
0
        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
                });
            }
        }
コード例 #3
0
		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));
		}
コード例 #4
0
		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
				});
			}
		}