 (defn mock-set-state-archived! [production])
 
 (defn setup-spool-dirs [test-fn]
-  (fs/mkdirs (env :archive-spool-dir))
-  (fs/mkdirs (env :archive-periodical-spool-dir))
-  (fs/mkdirs (env :archive-other-spool-dir))
+  (nio/create-directories! (env :archive-spool-dir))
+  (nio/create-directories! (env :archive-periodical-spool-dir))
+  (nio/create-directories! (env :archive-other-spool-dir))
   (reset! mock-db [])
   (with-redefs [clojure.java.jdbc/insert! mock-jdbc-insert
                 mdr2.production/set-state-archived! mock-set-state-archived!]
     (test-fn))
-  (fs/delete-dir (env :archive-spool-dir))
-  (fs/delete-dir (env :archive-periodical-spool-dir))
-  (fs/delete-dir (env :archive-other-spool-dir)))
+  (util/delete-directory! (env :archive-spool-dir))
+  (util/delete-directory! (env :archive-periodical-spool-dir))
+  (util/delete-directory! (env :archive-other-spool-dir)))
 
 (use-fixtures :each setup-spool-dirs)
 

          rdf-name (str dam-number ".rdf")
          spool-dir (env :archive-other-spool-dir)]
      (archive/archive production)
      (are [file] (fs/exists? file)
           (fs/file spool-dir dam-number "produkt" iso-name)
           (fs/file spool-dir dam-number rdf-name)))))

(deftest other-multiple
  (testing "archiving of other production multi volume"

                       (merge {:verzeichnis ds-number
                               :sektion "cdimage"}
                              default-container-entry)]))
      (are [f] (nio/exists? f)
           ;; check if the master has been copied
           (file spool-dir dam-number "produkt" dam-number "aud001.wav")
           (file spool-dir dam-number "produkt" dam-number "ncc.html")
           (file spool-dir dam-number "produkt" dam-number "master.smil")
           ;; check if the master has an rdf
           (file spool-dir dam-number (str dam-number ".rdf"))
           ;; check if the distmaster has been copied...
           (file spool-dir ds-number "produkt" iso-name)
           ;; ...and that it has an rdf
           (file spool-dir ds-number (str ds-number ".rdf"))))))

(deftest book-multiple
  (testing "archiving a book with multiple volumes"
