Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

filter: emit INFO message when can't work out directory filters

Nick Craig-Woodadbcc83fa5ef
diff --git a/fs/filter/glob.go b/fs/filter/glob.go
index 350180d3f..1ad53ccdb 100644
--- a/fs/filter/glob.go
+++ b/fs/filter/glob.go
@@ -7,6 +7,8 @@ import (
"fmt"
"regexp"
"strings"
+
+ "github.com/rclone/rclone/fs"
)
// GlobToRegexp converts an rsync style glob to a regexp
@@ -175,6 +177,7 @@ var (
func globToDirGlobs(glob string) (out []string) {
if tooHardRe.MatchString(glob) {
// Can't figure this one out so return any directory might match
+ fs.Infof(nil, "Can't figure out directory filters from %q: looking in all directories", glob)
out = append(out, "/**")
return out
}