Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;first example, this one works fine
- (ns foo)
- (defn print-extension
- [path]
- (println
- (org.apache.commons.io.FilenameUtils/getExtension path
- ))
- )
- ;;invocation below
- ;lein repl
- ; (load-file "/home/john/get-extension.clj")
- ;(/foo/print-extension "/home/john/get-extension.clj") ; gives "clj", it is OK.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement