Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn my-ls [d]
- (println "Files in " (.getName d))
- (doseq [f (.listFiles d)]
- (if (.isDirectory f)
- (print "d ")
- (print "- "))
- (println (.getName f))))
- (my-ls (File. "/"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement