Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added TestFile (analogous to TestDir) to FileHelpers #962

Merged
merged 1 commit into from
Oct 7, 2015

Conversation

MiloszKrajewski
Copy link
Contributor

Added TestFile (analogous to TestDir) to FileHelpers

@@ -343,6 +343,14 @@ let TestDir path =
else
logfn "%s not found" di.FullName
false

/// Checks if the file exists
let TestFile path =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we have somethin like FIleExists`?

@MiloszKrajewski
Copy link
Contributor Author

We do not have FileExists (in FileHelper). We do have "File.Exists(...)" (in System.IO) though. On the other hand "TestDir" has been implemented even if we also have "Directory.Exists(...)". TestFiles, in my opinion, fits better FAKE DSL. They are all wrappers around something after all.

forki added a commit that referenced this pull request Oct 7, 2015
Added TestFile (analogous to TestDir) to FileHelpers
@forki forki merged commit ec79e3f into fsprojects:master Oct 7, 2015
@forki
Copy link
Member

forki commented Oct 7, 2015

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants