aboutsummaryrefslogtreecommitdiffstats
path: root/drive/download_sync.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-02-02 22:34:42 +0100
committerPetter Rasmussen2016-02-02 22:34:42 +0100
commit3e09b6dad4e90c4a2bcc97b393f3096f7abf2d8d (patch)
treee82b6d74442db4d254bc7ec4d607cd355391c738 /drive/download_sync.go
parent2ff8d861923207314ed492637ec97a369b6768da (diff)
downloadgdrive-3e09b6dad4e90c4a2bcc97b393f3096f7abf2d8d.tar.bz2
s/byPathLength/byLocalPathLength/
Diffstat (limited to 'drive/download_sync.go')
-rw-r--r--drive/download_sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/drive/download_sync.go b/drive/download_sync.go
index c4bd977..5fb88ab 100644
--- a/drive/download_sync.go
+++ b/drive/download_sync.go
@@ -202,7 +202,7 @@ func (self *Drive) deleteExtraneousLocalFiles(files *syncFiles, args DownloadSyn
}
// Sort files so that the files with the longest path comes first
- sort.Sort(sort.Reverse(byPathLength(extraneousFiles)))
+ sort.Sort(sort.Reverse(byLocalPathLength(extraneousFiles)))
for i, lf := range extraneousFiles {
fmt.Fprintf(args.Out, "[%04d/%04d] Deleting %s\n", i + 1, extraneousCount, lf.absPath)