mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 20:14:24 +08:00
dropbox: go1.1 compatibility
This commit is contained in:
parent
9aa4b6bd9b
commit
2479ce2c8e
|
@ -573,7 +573,9 @@ func (o *FsObjectDropbox) remotePath() string {
|
|||
func metadataKey(path string) string {
|
||||
// NB File system is case insensitive
|
||||
path = strings.ToLower(path)
|
||||
return fmt.Sprintf("%x", md5.Sum([]byte(path)))
|
||||
hash := md5.New()
|
||||
hash.Write([]byte(path))
|
||||
return fmt.Sprintf("%x", hash.Sum(nil))
|
||||
}
|
||||
|
||||
// Returns the key for the metadata database
|
||||
|
|
Loading…
Reference in New Issue
Block a user