Created
March 2, 2016 18:26
-
-
Save evgeniyp/38f0597f0abafd794722 to your computer and use it in GitHub Desktop.
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
let handleEx ex = | |
printfn "Exception: %s" (ex.ToString()) | |
false | |
let DelDir dir = | |
try | |
Directory.Delete(dir, true) | |
true | |
with ex -> handleEx ex | |
let DelDirs dirs = List.fold (fun acc dir -> acc && DelDir dir) true dirs |
pavel-khritonenko
commented
Mar 3, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment