aboutsummaryrefslogtreecommitdiffstats
path: root/drive/sync.go
diff options
context:
space:
mode:
Diffstat (limited to 'drive/sync.go')
-rw-r--r--drive/sync.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/drive/sync.go b/drive/sync.go
index 204e7c2..2124f8f 100644
--- a/drive/sync.go
+++ b/drive/sync.go
@@ -73,6 +73,16 @@ func (self *Drive) prepareSyncFiles(localPath string, root *drive.File, cmp File
}, nil
}
+func (self *Drive) isSyncFile(id string) (bool, error) {
+ f, err := self.service.Files.Get(id).Fields("appProperties").Do()
+ if err != nil {
+ return false, fmt.Errorf("Failed to get file: %s", err)
+ }
+
+ _, ok := f.AppProperties["sync"]
+ return ok, nil
+}
+
func prepareLocalFiles(root string) ([]*LocalFile, error) {
var files []*LocalFile