mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 00:02:35 +02:00
filter: add options for glob to regexp without anchors and special path rules
This commit is contained in:
committed by
Nick Craig-Wood
parent
16d642825d
commit
731947f3ca
@ -1304,7 +1304,7 @@ func touchFiles(ctx context.Context, dateStr string, f fs.Fs, dir, glob string)
|
||||
return files, fmt.Errorf("invalid date %q: %w", dateStr, err)
|
||||
}
|
||||
|
||||
matcher, firstErr := filter.GlobToRegexp(glob, false)
|
||||
matcher, firstErr := filter.GlobPathToRegexp(glob, false)
|
||||
if firstErr != nil {
|
||||
return files, fmt.Errorf("invalid glob %q", glob)
|
||||
}
|
||||
|
Reference in New Issue
Block a user