M shared/storage/files/reader.go →
shared/storage/files/reader.go if f.IsDir() {
return nil
}
+ switch filepath.Ext(filePath) {
+ case ".br", ".gz", ".zstd":
+ return nil
+ }
relPath, err := filepath.Rel(r.root, filePath)
if err != nil {
fmsg.With(fmt.Sprintf("failed to make path relative, path: %s", filePath)),
)
}
- urlPath := fileNameToPathName("/" + relPath)
- switch filepath.Ext(relPath) {
- case ".br", ".gz", ".zstd":
- return nil
- }
-
+ urlPath := fileNameToPathName("/" + relPath)
r.log.Debug("registering file", "url", urlPath, "filename", relPath)
return r.registerFile(urlPath, filePath)