new rclone package

This commit is contained in:
Bel LaPointe
2021-04-18 15:25:09 -05:00
parent be2a031834
commit db72d59589
5 changed files with 36 additions and 30 deletions

View File

@@ -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()