From 3a24f73a1e00909596ca0002cb6d6805a20ce07b Mon Sep 17 00:00:00 2001 From: Milosz Krajewski Date: Thu, 1 Oct 2015 23:31:38 +0100 Subject: [PATCH] Added TestFile (analogous to TestDir) to FileHelpers --- src/app/FakeLib/FileHelper.fs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/FakeLib/FileHelper.fs b/src/app/FakeLib/FileHelper.fs index 4f0a7c4b424..85f92d27a4e 100644 --- a/src/app/FakeLib/FileHelper.fs +++ b/src/app/FakeLib/FileHelper.fs @@ -343,6 +343,14 @@ let TestDir path = else logfn "%s not found" di.FullName false + +/// Checks if the file exists +let TestFile path = + let fi = fileInfo path + if fi.Exists then true + else + logfn "%s not found" fi.FullName + false /// Checks the srcFiles for changes to the last release. /// ## Parameters