aboutsummaryrefslogtreecommitdiffstats
path: root/drive/sync_download.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-02-06 13:08:33 +0100
committerPetter Rasmussen2016-02-06 13:08:33 +0100
commitce32c7536cf40afae065b09018c05da6ba221c55 (patch)
treee08b55be1974ba9c05df59d2a8cb10fb64d42dfe /drive/sync_download.go
parent77d8e36d48c73fe1d0dc86b6736c32e5fd1f744a (diff)
downloadgdrive-ce32c7536cf40afae065b09018c05da6ba221c55.tar.bz2
Give FileComparer as argument
Diffstat (limited to 'drive/sync_download.go')
-rw-r--r--drive/sync_download.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/drive/sync_download.go b/drive/sync_download.go
index 7da16bd..f18cb18 100644
--- a/drive/sync_download.go
+++ b/drive/sync_download.go
@@ -18,6 +18,7 @@ type DownloadSyncArgs struct {
Path string
DryRun bool
DeleteExtraneous bool
+ Comparer FileComparer
}
func (self *Drive) DownloadSync(args DownloadSyncArgs) error {
@@ -31,7 +32,7 @@ func (self *Drive) DownloadSync(args DownloadSyncArgs) error {
}
fmt.Fprintln(args.Out, "Collecting local and remote file information...")
- files, err := self.prepareSyncFiles(args.Path, rootDir)
+ files, err := self.prepareSyncFiles(args.Path, rootDir, args.Comparer)
if err != nil {
return err
}