Skip to content

Commit

Permalink
Merge pull request #11 from tendant/master
Browse files Browse the repository at this point in the history
Change md5 dependency from pandect to clj-digest
  • Loading branch information
kanej committed Mar 5, 2020
2 parents 229cd60 + 8fa62f6 commit 4c06f32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions s3-sync/project.clj
Expand Up @@ -6,9 +6,9 @@
:scm {:name "git"
:url "http://github.com/kanej/lein-s3-sync"
:dir ".."}
:dependencies [[org.clojure/clojure "1.5.1"]
:dependencies [[org.clojure/clojure "1.10.1"]
[clj-aws-s3 "0.3.6"]
[pandect "0.3.0"]]
[digest "1.4.9"]]
:profiles {:dev {:source-paths ["dev"]
:dependencies [[org.clojure/tools.namespace "0.2.3"]
[org.clojure/java.classpath "0.2.0"]
Expand Down
5 changes: 3 additions & 2 deletions s3-sync/src/me/kanej/s3_sync/file_system.clj
@@ -1,5 +1,6 @@
(ns me.kanej.s3-sync.file-system
(:require [pandect.core :as p])
(:require [digest :as digest]
[clojure.java.io :as io])
(:import [java.io File]
[java.util.regex Pattern]))

Expand Down Expand Up @@ -43,6 +44,6 @@
(defn- path->file-details [root-path file]
(let [absolute-path (.getAbsolutePath file)
rel-path (relative-path root-path absolute-path)
md5 (p/md5-file absolute-path)]
md5 (digest/md5 (io/as-file absolute-path))]
{:path rel-path :md5 md5}))

0 comments on commit 4c06f32

Please sign in to comment.