diff options
| author | Petter Rasmussen | 2016-02-13 01:09:47 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2016-02-13 01:10:17 +0100 | 
| commit | 12e431b5e17ff4ceb6680987bd4649a94b83f896 (patch) | |
| tree | ae18b93e74026fe60f4b02a2be9839e32fc4231d /drive/sync.go | |
| parent | 5eae4f159d340d257e41e75604a0fc831cb76381 (diff) | |
| download | gdrive-12e431b5e17ff4ceb6680987bd4649a94b83f896.tar.bz2 | |
Add conflict handling and flags for uploads
Diffstat (limited to 'drive/sync.go')
| -rw-r--r-- | drive/sync.go | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/drive/sync.go b/drive/sync.go index f39c1c6..204e7c2 100644 --- a/drive/sync.go +++ b/drive/sync.go @@ -510,6 +510,18 @@ func findLocalConflicts(files []*changedFile) []*changedFile {      return conflicts  } +func findRemoteConflicts(files []*changedFile) []*changedFile { +    var conflicts []*changedFile + +    for _, cf := range files { +        if cf.compareModTime() == RemoteLastModified { +            conflicts = append(conflicts, cf) +        } +    } + +    return conflicts +} +  type byLocalPathLength []*LocalFile  func (self byLocalPathLength) Len() int { | 
