Sean Farrow
Sean Farrow

Reputation: 59

Using globbing in Fake

I'm converting a build script from Rake to Fake. I've got the following glob pattern's when trying to clean files (using the clean task from Rake) '/bin', '/obj' What is the equivalent in Fake?

Upvotes: 0

Views: 251

Answers (1)

magicmonty
magicmonty

Reputation: 88

!! "**/bin"
++ "**/obj"
|> DeleteDirs

or

!! "**/bin"
++ "**/obj"
|> CleanDirs

DeleteDirs deletes the directories, if they exist, CleanDirs recreates the given directories, if they don't exist

Upvotes: 1

Related Questions