Summary
Gets all paths matching the specified pattern.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Paths")]
public static PathCollection GetPaths(this ICakeContext context, GlobPattern pattern, GlobberSettings settings)
Examples
Func<IFileSystemInfo, bool> exclude_node_modules =
fileSystemInfo => !fileSystemInfo.Path.FullPath.EndsWith(
"node_modules", StringComparison.OrdinalIgnoreCase);
var paths = GetPaths("./src/**/obj/*", new GlobberSettings { Predicate = exclude_node_modules });
foreach(var path in paths)
{
Information("Path: {0}", path);
}
Attributes
Parameters
Return Value