mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
This adds a context.Context parameter to NewFs and related calls. This is necessary as part of reading config from the context - backends need to be able to read the global config.
This commit is contained in:
@@ -74,7 +74,7 @@ Note to run these commands on a running backend then see
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
f, err := fsInfo.NewFs(configName, fsPath, config)
|
||||
f, err := fsInfo.NewFs(context.Background(), configName, fsPath, config)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user