Skip to content

Commit

Permalink
fix FileTasks.copyFile to run properly on all mono runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegZee committed Sep 25, 2015
1 parent 3afce4a commit a24e87d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/FileTasks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ let copyFile (src: string) tgt =
do! trace Level.Info "[copyFile] '%A' -> '%s'" src tgt

let tgtFolder = Path.GetDirectoryName(tgt)
Directory.CreateDirectory(tgtFolder) |> ignore

if not <| System.String.IsNullOrEmpty(tgtFolder) then
Directory.CreateDirectory(tgtFolder) |> ignore

File.Copy(src, tgt, true)
}
Expand Down
2 changes: 1 addition & 1 deletion xake.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{C5FB2DCA-B737-43D0-92F3-4D2CE03CD022}"
Expand Down Expand Up @@ -47,6 +46,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project files", "Project files", "{CA08F45F-D8B4-46D4-B7EC-38C68C7AF0B2}"
ProjectSection(SolutionItems) = preProject
.travis.yml = .travis.yml
build-old.fsx = build-old.fsx
build.fsx = build.fsx
core\filesets.fsx = core\filesets.fsx
EndProjectSection
Expand Down

0 comments on commit a24e87d

Please sign in to comment.