From bff05aae92e337ffa7ff0d53efb996325481f209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Sat, 13 Apr 2024 19:31:25 +0200 Subject: [PATCH] Find sync files suing regex instead of suffix --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index a878258..2faaaad 100644 --- a/util.go +++ b/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) }