Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…/files to Globbing.fs
  • Loading branch information
forki committed Mar 12, 2015
1 parent 39af5c0 commit 8f83457
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/FakeLib/Globbing/Globbing.fs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ let internal search (baseDir : string) (input : string) =
let baseDir = normalizePath baseDir
let input = normalizePath input
let input = input.Replace(baseDir, "")

let input =
if not (input.EndsWith("/") && DirectoryInfo(Path.Combine(baseDir, input)).Exists) then input + "/"
else input


let filePattern = Path.GetFileName(input)
input.Split([| '/'; '\\' |], StringSplitOptions.RemoveEmptyEntries)
|> Seq.map (function
Expand Down

0 comments on commit 8f83457

Please sign in to comment.