         _                  (when detect-old-file-schema?
                              (when-not (empty? @detect-old-blob)
                                (info (count @detect-old-blob) "files in old storage schema detected. Migration for each key will happen transparently the first time a key is accessed. Invoke konserve.core/keys to do so at once. Once all keys are migrated you can deactivate this initial check by setting detect-old-file-schema to false.")))
-        backing            (BackingFilestore. path detect-old-blob)]
+        backing            (BackingFilestore. path detect-old-blob ephemeral?)]
     (connect-default-store backing store-config)))
 
 (comment

   :write-handlers empty
   :buffer-size    1 MB
   :config         config} "
  [path & {:keys [detect-old-file-schema? config]
           :or {detect-old-file-schema? false}
           :as params}]
  ;; check config
  (let [store-config (merge {:default-serializer :FressianSerializer

      (catch Exception e
        e))))

(defn list-files
  "Lists all files on the first level of a directory."
  ([directory]
   (list-files directory (fn [_] false)))
  ([directory ephemeral?]
   (let [root (Paths/get directory (into-array String []))
         ds (Files/newDirectoryStream root)
         files (mapv (fn [^Path path] (str (.relativize root path)))
                     (remove ephemeral? ds))]
     (.close ds)
     files)))

(defn count-konserve-keys [dir]
  "Counts konserve files in the directory."
