added disk quota
This commit is contained in:
parent
4499e88245
commit
9cc2b04342
26 changed files with 1376 additions and 61 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue