mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-05 11:37:44 +01:00
this works great and support long file names
This commit is contained in:
1 parent
2da84ed331
commit
955eae3500
3 files changed
+30
-10
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user