css fixes

This commit is contained in:
ston1th 2022-03-20 21:50:12 +01:00
commit 814fd8a5f7
2 changed files with 27 additions and 17 deletions

View file

@ -41,6 +41,7 @@ func (s *statusInterceptor) Status() int {
type dirContents struct {
AllPaths []string `xml:"a"`
Base string `xml:"-"`
Dirs dirs `xml:"-"`
Files files `xml:"-"`
}
@ -97,6 +98,7 @@ func (r *responseInterceptor) GetPaths(path string, fs *fs.FS) (dc dirContents,
if err != nil {
return
}
dc.Base = path
path = strings.TrimSuffix(path, "/")
for _, p := range dc.AllPaths {
p = strings.ReplaceAll(p, "&", "&")