mirror of
https://github.com/rclone/rclone.git
synced 2026-01-07 11:03:15 +00:00
Implement Google Drive interface
* needs writeup of rather complicated api key setup
* not implemented yet
* fix for slow directory listing
* mimetypes for files
This commit is contained in:
5
fs.go
5
fs.go
@@ -49,6 +49,9 @@ func NewFs(path string) (Fs, error) {
|
||||
if s3Match.MatchString(path) {
|
||||
return NewFsS3(path)
|
||||
}
|
||||
if driveMatch.MatchString(path) {
|
||||
return NewFsDrive(path)
|
||||
}
|
||||
return NewFsLocal(path)
|
||||
}
|
||||
|
||||
@@ -126,7 +129,7 @@ func Equal(src, dst FsObject) bool {
|
||||
srcModTime := src.ModTime()
|
||||
dstModTime := dst.ModTime()
|
||||
if !dstModTime.Equal(srcModTime) {
|
||||
FsDebug(src, "Modification times differ")
|
||||
FsDebug(src, "Modification times differ: %v, %v", srcModTime, dstModTime)
|
||||
} else {
|
||||
FsDebug(src, "Size and modification time the same")
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user