Last active
October 23, 2015 16:21
-
-
Save SjB/c1ba0cb8b890a0cf1a86 to your computer and use it in GitHub Desktop.
Cake FindDirectory function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Func<string, DirectoryPath> FindDirectory = delegate(string glob) { | |
| var dirs = GetDirectories(glob); | |
| foreach (var dir in dirs) | |
| return dir; | |
| Error("Can't find any file with glob {0}", glob); | |
| return Directory(""); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment