From 81e29bf178e48b3321faac5a2f13e76a502193ce Mon Sep 17 00:00:00 2001 From: "Alex.Shi" Date: Wed, 5 Aug 2020 15:37:40 +0300 Subject: [PATCH] fix creating dirs in postmortem handler (#267) --- src/etaoin/api.clj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/etaoin/api.clj b/src/etaoin/api.clj index 092db94f..793a72b3 100644 --- a/src/etaoin/api.clj +++ b/src/etaoin/api.clj @@ -2760,6 +2760,10 @@ path-src (join-path dir-src file-src) path-log (join-path dir-log file-log)] + (clojure.java.io/make-parents path-img) + (clojure.java.io/make-parents path-src) + (clojure.java.io/make-parents path-log) + (log/debugf "Writing screenshot: %s" path-img) (screenshot driver path-img)