diff --git a/drivers/onedrive.go b/drivers/onedrive.go index f4703ff2..a82d379a 100644 --- a/drivers/onedrive.go +++ b/drivers/onedrive.go @@ -148,7 +148,7 @@ func (driver Onedrive) GetFiles(account *model.Account, path string) ([]OneFile, if account.OrderBy != "" { nextLink += fmt.Sprintf("&orderby=%s", account.OrderBy) if account.OrderDirection != "" { - nextLink += fmt.Sprintf(" %s", account.OrderDirection) + nextLink += fmt.Sprintf("%%20%s", account.OrderDirection) } } for nextLink != "" {