1
0
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:
Nick Craig-Wood
2013-01-14 23:38:18 +00:00
parent 90a397c533
commit fdb1ec4d53
3 changed files with 665 additions and 1 deletions

5
fs.go
View File

@@ -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