Q:

how to list files and directory in a path without recursive under clojure

this method can't satisfy entirely me because that it's recursive.
I just need to list files and directory of current path.
like this...
the example can't print it as follows. 

thanks!

A:

You can use .list to get the directory listing for a given path like so.
user=> (require '[clojure.java.io :as io])
nil
user=> (map pprint (.list (io/file "./")))
".android"
".AndroidStudio2.0"
".ansible"
".anyconnect"

