1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-15 15:53:41 +00:00

Implement --fast-list flag.

This is supported remotes which can do a recursive listing.  It will
use more memory.

This is related to #1277 but doesn't fix that issue yet.
This commit is contained in:
Nick Craig-Wood
2017-06-06 16:40:00 +01:00
parent 3a431056e2
commit 50928a5027
11 changed files with 602 additions and 60 deletions

View File

@@ -96,6 +96,7 @@ var (
noUpdateModTime = BoolP("no-update-modtime", "", false, "Don't update destination mod-time if files identical.")
backupDir = StringP("backup-dir", "", "", "Make backups into hierarchy based in DIR.")
suffix = StringP("suffix", "", "", "Suffix for use with --backup-dir.")
useListR = BoolP("fast-list", "", false, "Use recursive list if available. Uses more memory but fewer transactions.")
bwLimit BwTimetable
bufferSize SizeSuffix = 16 << 20
@@ -221,6 +222,7 @@ type ConfigInfo struct {
DataRateUnit string
BackupDir string
Suffix string
UseListR bool
BufferSize SizeSuffix
}
@@ -367,6 +369,7 @@ func LoadConfig() {
Config.NoUpdateModTime = *noUpdateModTime
Config.BackupDir = *backupDir
Config.Suffix = *suffix
Config.UseListR = *useListR
Config.BufferSize = bufferSize
ConfigPath = *configFile