commit 7ff8eb5ea39a7089e17cea1d3f728c8cb9959ddd
parent 002827ef383fc76638df813c0be92db6d8671f07
Author: alex wennerberg <alex@alexwennerberg.com>
Date: Mon, 9 Jan 2023 21:53:49 -0800
fix hidden folder issue
.hiddensomething was being shown on the file updated list, when the files should
be hidden from here too
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/db.go b/db.go
@@ -183,7 +183,7 @@ func getUpdatedFiles(admin bool, user string) ([]*File, error) { // TODO cache t
return filepath.SkipDir
}
// make this do what it should
- if !info.IsDir() {
+ if !info.IsDir() && !(strings.HasPrefix(info.Name(), HiddenFolder) && !admin) {
res := fileFromPath(thepath)
result = append(result, &res)
}