Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Created July 22, 2016 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdkealy/cf3281687a4812ecd417f122837c3fc1 to your computer and use it in GitHub Desktop.
Save jdkealy/cf3281687a4812ecd417f122837c3fc1 to your computer and use it in GitHub Desktop.
(defn upload-all-files []
(debug "RUNNING BATCH")
(remove-all-empty-dirs)
(rm-lr-data)
(Thread/sleep 5000)
(remove-all-empty-dirs)
(rm-lr-data)
(let [files (vec (filter (fn [e] (not (ignorable-file e))) (fs)))]
(debug :FILECOUNT (count files))
(let [output (pmap prep-upload files)]
(remove-all-empty-dirs)))
(when @do-sync
(recur)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment