new rclone package
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"local/args"
|
||||
"local/logb"
|
||||
@@ -9,7 +10,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/ncw/rclone/fs/config"
|
||||
"github.com/rclone/rclone/fs/config"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -95,8 +96,8 @@ func Refresh() error {
|
||||
RCloneConfig = as.Get("rcconf").GetString()
|
||||
|
||||
os.Setenv("RCLONE_CONFIG", RCloneConfig)
|
||||
config.ConfigPath = RCloneConfig
|
||||
config.LoadConfig()
|
||||
config.SetConfigPath(RCloneConfig)
|
||||
config.LoadConfig(context.Background())
|
||||
|
||||
MonitorInterval = as.Get("interval").GetDuration()
|
||||
DryRun = as.Get("dry").GetBool()
|
||||
|
||||
Reference in New Issue
Block a user