forked from TrueCloudLab/rclone
dropbox: remove unused code
This commit is contained in:
parent
c4531daa43
commit
fbe1c7f1ea
1 changed files with 0 additions and 15 deletions
|
@ -25,7 +25,6 @@ of path_display and all will be well.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/md5"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
@ -808,20 +807,6 @@ func (o *Object) remotePath() string {
|
||||||
return o.fs.slashRootSlash + o.remote
|
return o.fs.slashRootSlash + o.remote
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the key for the metadata database for a given path
|
|
||||||
func metadataKey(path string) string {
|
|
||||||
// NB File system is case insensitive
|
|
||||||
path = strings.ToLower(path)
|
|
||||||
hash := md5.New()
|
|
||||||
_, _ = hash.Write([]byte(path))
|
|
||||||
return fmt.Sprintf("%x", hash.Sum(nil))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns the key for the metadata database
|
|
||||||
func (o *Object) metadataKey() string {
|
|
||||||
return metadataKey(o.remotePath())
|
|
||||||
}
|
|
||||||
|
|
||||||
// readMetaData gets the info if it hasn't already been fetched
|
// readMetaData gets the info if it hasn't already been fetched
|
||||||
func (o *Object) readMetaData() (err error) {
|
func (o *Object) readMetaData() (err error) {
|
||||||
if !o.modTime.IsZero() {
|
if !o.modTime.IsZero() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue