On Fri, May 18, 2012 at 3:44 PM, Raju Bitter <[email protected]> wrote:
> I noticed that the function delete-file-recursively is present in
> clojure-contrib java-utils package, but it's missing in
> clojure.java.io. Is there any other function for deleting a directory
> recursively?
> http://richhickey.github.com/clojure-contrib/java-utils-api.html#clojure.contrib.java-utils/delete-file-recursively

It was left out of clojure.java.io because in Java 6 there's no way to
detect whether a given directory is actually a symlink, so it has to
recurse into symlinked directories indiscriminately. This behaviour is
arguably dangerous. Perhaps in the far future it could be added once
support for Java 6 is dropped.

-Phil

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to