@@ -3,6 +3,7 @@ package cmd
33import (
44 "github.com/dustin/go-humanize"
55 "github.com/l3uddz/crop/config"
6+ "github.com/l3uddz/crop/rclone"
67 "github.com/l3uddz/crop/uploader"
78 "github.com/pkg/errors"
89 "github.com/sirupsen/logrus"
@@ -48,7 +49,7 @@ var uploadCmd = &cobra.Command{
4849 } else {
4950 // no service accounts were loaded
5051 // check to see if any of the copy or move remote(s) are banned
51- banned , expiry := upload . RemotesBanned (upload .Config .Remotes .Copy )
52+ banned , expiry := rclone . AnyRemotesBanned (upload .Config .Remotes .Copy )
5253 if banned && ! expiry .IsZero () {
5354 // one of the copy remotes is banned, abort
5455 upload .Log .WithFields (logrus.Fields {
@@ -58,7 +59,7 @@ var uploadCmd = &cobra.Command{
5859 continue
5960 }
6061
61- banned , expiry = upload . RemotesBanned ([]string {upload .Config .Remotes .Move })
62+ banned , expiry = rclone . AnyRemotesBanned ([]string {upload .Config .Remotes .Move })
6263 if banned && ! expiry .IsZero () {
6364 // the move remote is banned, abort
6465 upload .Log .WithFields (logrus.Fields {
0 commit comments