This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-03
Channels
- # announcements (1)
- # babashka (2)
- # beginners (17)
- # calva (11)
- # cider (4)
- # clara (3)
- # clj-kondo (19)
- # cljs-dev (60)
- # clojure (27)
- # clojure-europe (1)
- # clojure-nl (2)
- # clojure-spec (1)
- # clojure-uk (11)
- # clojurescript (128)
- # core-logic (7)
- # cursive (7)
- # data-science (3)
- # datomic (76)
- # defnpodcast (4)
- # fulcro (5)
- # malli (5)
- # off-topic (7)
- # re-frame (1)
- # reitit (3)
- # shadow-cljs (86)
- # spacemacs (5)
- # test-check (48)
- # tools-deps (9)
- # vim (12)
- # xtdb (6)
How to handle directory path contains space? Like "/path/to the/file.jpg", I'm using
.
Clojure reports error:
Unhandled java.io.FileNotFoundException
test jj/kk.jpg (No such file or directory)
Here is my code:
clojure
(io/copy (io/input-stream "")
(io/output-stream (str "test jj" "/" "kk.jpg")))
It is because the directory doesn't exist. Please try without the directory, or create the directory first
Is there a way to automatically create directory which does not exist?
in what sense? Like a headless browser?
you can control a regular browser and make screenshots using something like etaoin: https://github.com/igrishaev/etaoin
hey guys, I’m trying to make my code more testable/functional and I wrote the gist (https://gist.github.com/tdantas/1daa70b780d80e51e86416eb7dcf95ac) to understand how would you guys transform the js imperative code into clojure functional code