Advertisement
Guest User

Untitled

a guest
Aug 29th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn my-ls [d]
  2.   (println "Files in " (.getName d))                            
  3.   (doseq [f (.listFiles d)]                                    
  4.     (if (.isDirectory f)                                        
  5.       (print "d ")                                              
  6.       (print "- "))                                            
  7.     (println (.getName f))))                                    
  8.                                                                
  9. (my-ls (File. "/"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement