Module for creating and working with a Glob.
A Glob represents a set of patterns to include/exclude files.
// search recursively for all files with a .dll file extension let dlls = Glob.create "**/*.dll" |> Glob.toPaths
Type | Description |
Function or value | Description |
|
Example
let cleanDirs = Glob.create "**/bin" |> Glob.add "**/obj" |
|
Example
let dlls = Glob.create "**/*.dll" |
|
Creates a Glob from a pattern with a root directory. The root directory is the path of a directory to start searching from.
Example
let logs = Glob.createWithRootDir "/tmp" "**/*.log" |
|
Example
let dlls = Glob.create "**/*.dll" |> Glob.exclude "exclude.dll" |
|
Example
Glob.create "**/*Things*" |> Glob.toPathTypes |> Seq.iter (function | Glob.File x -> printfn "File path: %s" x | Glob.Directory x -> printfn "Directory path: %s" x) |
|
Example
let dllPaths = Glob.create "**/*.dll" |> Glob.toPaths |