1 instantiation of FileMatcher
Microsoft.Build.Tasks.Core (1)
FileMatcher.cs (1)
85public static FileMatcher Default = new FileMatcher(FileSystems.Default, null);
19 references to FileMatcher
Microsoft.Build.Tasks.Core (19)
AssemblyDependency\TaskItemSpecFilenameComparer.cs (2)
58int xFilenameStart = xItemSpec.LastIndexOfAny(FileMatcher.directorySeparatorCharacters); 64int yFilenameStart = yItemSpec.LastIndexOfAny(FileMatcher.directorySeparatorCharacters);
Copy.cs (1)
757(string[] filesInFolder, _, _) = FileMatcher.Default.GetFiles(src, "**");
CreateItem.cs (8)
144FileMatcher.SearchAction action = FileMatcher.SearchAction.None; 156if (FileMatcher.HasWildcards(i.ItemSpec)) 158FileMatcher.Default.GetFileSpecInfo(i.ItemSpec, out string directoryPart, out string wildcardPart, out string filenamePart, out bool needsRecursion, out bool isLegalFileSpec); 159bool logDriveEnumeratingWildcard = FileMatcher.IsDriveEnumeratingWildcardPattern(directoryPart, wildcardPart); 181(files, action, _) = FileMatcher.Default.GetFiles(null /* use current directory */, i.ItemSpec); 188FileMatcher.Result match = FileMatcher.Default.FileMatch(i.ItemSpec, file);
FileMatcher.cs (2)
85public static FileMatcher Default = new FileMatcher(FileSystems.Default, null); 570fixedDirectoryPart = FileMatcher.GetLongPathName(fixedDirectoryPart, _getFileSystemEntries);
Unzip.cs (6)
289result = _includePatterns.All(pattern => !FileMatcher.IsMatch(FileMatcher.Normalize(zipArchiveEntry.FullName), pattern)); 294result |= _excludePatterns.Any(pattern => FileMatcher.IsMatch(FileMatcher.Normalize(zipArchiveEntry.FullName), pattern)); 325if (FileMatcher.HasPropertyOrItemReferences(pattern)) 337? pattern.Split([';'], StringSplitOptions.RemoveEmptyEntries).Select(FileMatcher.Normalize).ToArray()