Skip to content

Commit

Permalink
Merge pull request #2030 from vbfox/glob_frombasedir
Browse files Browse the repository at this point in the history
Suggestion: a way to start globbing from a specific basedir
  • Loading branch information
matthid authored Jul 29, 2018
2 parents c130303 + 8e7fafc commit e113e64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/Fake.IO.FileSystem/GlobbingFileSystem.fs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ module GlobbingPattern =
Includes = [ x ]
Excludes = [] } :> IGlobbingPattern

/// Start an empty globbing pattern from the specified directory
let createFrom (dir : string) =
{ BaseDirectory = dir
Includes = []
Excludes = [] } :> IGlobbingPattern

/// Sets a directory as baseDirectory for fileIncludes.
let setBaseDir (dir : string) (fileIncludes : IGlobbingPattern) = fileIncludes.SetBaseDirectory dir

Expand Down

0 comments on commit e113e64

Please sign in to comment.