MCPcopy
hub / github.com/rclone/rclone / GlobPathToRegexp

Function GlobPathToRegexp

fs/filter/glob.go:15–17  ·  view source on GitHub ↗

GlobPathToRegexp converts an rsync style glob path to a regexp

(glob string, ignoreCase bool)

Source from the content-addressed store, hash-verified

13
14// GlobPathToRegexp converts an rsync style glob path to a regexp
15func GlobPathToRegexp(glob string, ignoreCase bool) (*regexp.Regexp, error) {
16 return globToRegexp(glob, true, true, ignoreCase)
17}
18
19// GlobStringToRegexp converts an rsync style glob string to a regexp
20//

Callers 6

touchFilesFunction · 0.92
addDirGlobsMethod · 0.85
AddMethod · 0.85
AddMethod · 0.85
TestGlobPathToRegexpFunction · 0.85
TestGlobToDirGlobsFunction · 0.85

Calls 1

globToRegexpFunction · 0.85

Tested by 3

touchFilesFunction · 0.74
TestGlobPathToRegexpFunction · 0.68
TestGlobToDirGlobsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…