aboutsummaryrefslogtreecommitdiffstats
path: root/drive/sync_upload.go
diff options
context:
space:
mode:
Diffstat (limited to 'drive/sync_upload.go')
-rw-r--r--drive/sync_upload.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/drive/sync_upload.go b/drive/sync_upload.go
index 7a0833a..96442e1 100644
--- a/drive/sync_upload.go
+++ b/drive/sync_upload.go
@@ -106,7 +106,7 @@ func (self *Drive) prepareSyncRoot(args UploadSyncArgs) (*drive.File, error) {
}
// Return directory if syncRoot property is already set
- if _, ok := f.AppProperties["isSyncRoot"]; ok {
+ if _, ok := f.AppProperties["syncRoot"]; ok {
return f, nil
}
@@ -124,7 +124,7 @@ func (self *Drive) prepareSyncRoot(args UploadSyncArgs) (*drive.File, error) {
// Update directory with syncRoot property
dstFile := &drive.File{
- AppProperties: map[string]string{"isSyncRoot": "true"},
+ AppProperties: map[string]string{"sync": "true", "syncRoot": "true"},
}
f, err = self.service.Files.Update(f.Id, dstFile).Fields(fields...).Do()
@@ -260,7 +260,7 @@ func (self *Drive) createMissingRemoteDir(args createMissingRemoteDirArgs) (*dri
Name: args.name,
MimeType: DirectoryMimeType,
Parents: []string{args.parentId},
- AppProperties: map[string]string{"syncRootId": args.rootId},
+ AppProperties: map[string]string{"sync": "true", "syncRootId": args.rootId},
}
if args.dryRun {
@@ -298,7 +298,7 @@ func (self *Drive) uploadMissingFile(parentId string, lf *LocalFile, args Upload
dstFile := &drive.File{
Name: lf.info.Name(),
Parents: []string{parentId},
- AppProperties: map[string]string{"syncRootId": args.RootId},
+ AppProperties: map[string]string{"sync": "true", "syncRootId": args.RootId},
}
// Chunk size option