-
-
Save sritchie/3148f33f2702b029fe78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn files-with-names | |
"Subquery to return all files, along with their filenames." | |
[dir] | |
(let [source (hfs-wholefile dir)] | |
(<- [?filename ?file] (source ?filename ?file)))) | |
(defn all-files | |
"Subquery to return all files in the supplied directory." | |
[dir] | |
(let [source (hfs-wholefile dir)] | |
(<- [?file] (source ?filename ?file)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment