Dear All ,

I wanted to list  the files of a folder , if a folder within , then it
should list the files of that folder and so on.. ie recursively list
files of folders

I tried with recur & loop and could not do it . Then i searched the
internet for the code , i got the code , but i am not able to
understand it , what is -> for ?
following is the code .


; prints all files
(import 'java.io.File)
(defn walk [dirpath]
  (doseq [file (-> dirpath File. file-seq)]
     (println (.getPath file)  )))


can anybody help to do with using recur / loop so to know how to use
recur or loop.

Thanks in advance
Abraham

-- 
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

Reply via email to