Find sync files suing regex instead of suffix
This commit is contained in:
2
util.go
2
util.go
@@ -74,7 +74,7 @@ func GetSyncFilesRecursively(input string) ([]string, error) {
|
||||
}
|
||||
|
||||
// Effectively only find files named "sync" (with no extension!!)
|
||||
if !file.IsDir() && strings.HasSuffix(path, "sync") {
|
||||
if !file.IsDir() && DirRegex.MatchString(path) {
|
||||
files = append(files, path)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user