Find sync files suing regex instead of suffix

This commit is contained in:
2024-04-13 19:31:25 +02:00
parent e5bd84ed64
commit bff05aae92

View File

@@ -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)
}