> I think i'm having this same problem again, with [org.clojure/clojurescript
> "0.0-2371"] :
>
> 'files' comes from
> http://nodejs.org/docs/latest/api/fs.html#fs_fs_readdir_path_callback
>
> when i call (type (js->clj files))
>
> i get #<function Array() { [native code] }>
This function turns the array into a list:
(defn ls-dir
[path]
(let [files (.readdirSync fs path)
len (alength files)]
(for [i (range len)] (aget files i))))
--
Mike
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.