Small bug fixes and my own implementation of webdav.Dir

This commit is contained in:
Henrique Dias committed 2017-07-26 11:14:05 +01:00
1 parent dd3ccec696
commit a753247333
8 files changed
+257 -95

No files matched your search

+2 -3
View File
@@ -12,9 +12,8 @@ import (
"path/filepath"
"strings"
"golang.org/x/net/webdav"
. "github.com/hacdias/filemanager"
"github.com/hacdias/filemanager/dir"
"github.com/mholt/caddy"
"github.com/mholt/caddy/caddyhttp/httpserver"
)
@@ -137,7 +136,7 @@ func parse(c *caddy.Controller) ([]*config, error) {
Regexp: &Regexp{Raw: "\\/\\..+"},
}},
CSS: "",
FileSystem: webdav.Dir(baseScope),
FileSystem: dir.Dir(baseScope),
})
if err != nil {