Last active
October 20, 2021 20:05
-
-
Save usametov/0eb479344ddd2f4c315c6e763c5243ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[babashka.fs :as fs]) | |
;;perform bulk delete operation for a list of files provided in done.txt | |
(->> (line-seq (io/reader "./done.txt")) | |
(filter (complement clojure.string/blank?)) | |
(doall (map #(fs/delete-if-exists (str "./test-bb/" %))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment