Skip to content

Instantly share code, notes, and snippets.

@ndimiduk
Created March 15, 2012 19:33
Show Gist options
  • Save ndimiduk/2046310 to your computer and use it in GitHub Desktop.
Save ndimiduk/2046310 to your computer and use it in GitHub Desktop.
$ git --no-pager diff 1.5.2 1.7.0 src/leiningen/util/file.clj
diff --git a/src/leiningen/util/file.clj b/src/leiningen/util/file.clj
index 638cfe7..0a1f90d 100644
--- a/src/leiningen/util/file.clj
+++ b/src/leiningen/util/file.clj
@@ -11,6 +11,7 @@
"Delete file f. If it's a directory, recursively delete all its contents.
Raise an exception if any deletion fails unless silently is true."
[f & [silently]]
+ (System/gc) ; This sometimes helps release files for deletion on windows.
(let [f (file f)]
(if (.isDirectory f)
(doseq [child (.listFiles f)]
git finished.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment