Automatically set --no-traverse when copying a single file

This commit is contained in:
Nick Craig-Wood
2016-06-26 21:10:20 +01:00
parent af4ef8ad8d
commit f6a053df6e
2 changed files with 30 additions and 0 deletions

View File

@@ -384,6 +384,8 @@ func NewFsSrc(remote string) fs.Fs {
}
// Limit transfers to this file
err = fs.Config.Filter.AddFile(path.Base(fsPath))
// Set --no-traverse as only one file
fs.Config.NoTraverse = true
}
if err != nil {
fs.Stats.Error()