added disk quota

This commit is contained in:
ston1th 2022-03-17 00:47:45 +01:00
commit 9cc2b04342
26 changed files with 1376 additions and 61 deletions

View file

@ -9,6 +9,7 @@ import (
"cachefs/pkg/fs"
"github.com/go-logr/logr"
"golang.org/x/exp/slices"
"golang.org/x/net/webdav"
)
@ -65,10 +66,5 @@ func skipDavLog(path string) bool {
if i > 0 {
path = path[i+1:]
}
for _, v := range skipDavFiles {
if path == v {
return true
}
}
return false
return slices.Contains(skipDavFiles, path)
}