this works great and support long file names

This commit is contained in:
Chris Lu committed 2018-05-26 14:08:55 -07:00
1 parent 2da84ed331
commit 955eae3500
3 files changed
+30 -10

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
package abstract_sql
import (
"crypto/md5"
"io"
)
// returns a 128 bit hash
func md5hash(dir string) []byte {
h := md5.New()
io.WriteString(h, dir)
return h.Sum(nil)
}