On 12 March 2014 00:06, Brandon Barret <mrbarret...@gmail.com> wrote:
> > (defn list-paths [directory] > (println "Files in " (.getName directory)) > (doseq [f (.listFiles directory)] > (if (.isDirectory f) > (print "directory: ") > (print "- ")) > (println (.getName f) > (fn clj-check [directory] > (if (.contains directory ".jar") > (println("weeee") > (println ("noooo")))))))) > > (list-paths (File. "home/documents/something") <---run it here > > > My problems are twofold. When I run the function using the home folder for > Eclipse, I get the directory output just fine, but in my second > inner-function, I only get references to a location in memory when it is > run, not the strings I want to print. > That's because you're defining an anonymous function, and then trying to print that function, instead of running it. From your code I'm not really sure what you're trying to do. > Also, the directories work fine with my local IDE paths, but I cannot > access anything else on my computer. I think I am missing something on both > counts? > You have "home/documents/something", which is a relative path. Have you tried passing in an absolute path, i.e. with a preceding "/"? - James -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.