Operators Module
Contains operators to find and process files.
This module is part of the Fake.IO.FileSystem
package
Example
Simple glob using as list
#r "paket: nuget Fake.IO.FileSystem //"
open Fake.IO.Globbing.Operators
let csProjectFiles = !! "src/*.csproj"
for projectFile in csProjectFiles do
printf "F# ProjectFile: %s" projectFile
Example
Combine globs
#r "paket: nuget Fake.IO.FileSystem //"
open Fake.IO.Globbing.Operators
let projectFiles =
!! "src/*/*.*proj"
++ "src/*/*.target"
-- "src/*/*.vbproj"
for projectFile in projectFiles do
printf "ProjectFile: %s" projectFile
Example
Forward globs to tasks
#r "paket:
nuget Fake.Core.Target
nuget Fake.IO.FileSystem //"
open Fake.Core
open Fake.IO
open Fake.IO.Globbing.Operators
Target.create "Clean" (fun _ ->
!! "src/*/*/obj/**/*.nuspec"
|> File.deleteAll
)
Functions and values
Function or value | Description |
Full Usage:
!!x
Parameters:
string
-
The pattern to create globbing from
Returns: IGlobbingPattern
Modifiers: inline |
|
Full Usage:
x ++ pattern
Parameters:
IGlobbingPattern
-
The pattern to include
pattern : string
Returns: IGlobbingPattern
Modifiers: inline |
|
Full Usage:
x -- pattern
Parameters:
IGlobbingPattern
-
The pattern to include
pattern : string
Returns: IGlobbingPattern
Modifiers: inline |
|