André Thieme <splendidl...@googlemail.com> writes: > This could really be helpful for some fixtures during unit testing.
That's exactly what I'm using it for. =) I think anyone else who has tests that write files is going to need something like this too, which is what made me think it'd be appropriate for contrib. > One minor change that I personally would make is using when vs. if > in delete-file-recursively. Sure; the idea is that "if" implies an "else", but "when" contains an implicit "do" and is thus more suitable for impure functions? > Perhaps also renaming the parameters of the functions to file, > although this may conflict with the function file that you are using. Yeah, I had originally put this in the clojure.contrib.java-utils namespace, which defines file. Not sure if that's the best place for it, but I don't see anything else that would be a better fit. -Phil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---