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