Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions webdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,7 @@ func (d *DavClient) Mount() (err error) {
d.DavSupport = mapLine(getHeader(resp.Header, "Dav"))

// Is this apache with mod_dav?
isApache := strings.Index(resp.Header.Get("Server"), "Apache") >= 0
if isApache && d.DavSupport["<http://apache.org/dav/propset/fs/1>"] {
if strings.Contains(resp.Header.Get("Server"), "Apache") && d.DavSupport["<http://apache.org/dav/propset/fs/1>"] {
d.IsApache = true
}

Expand Down Expand Up @@ -557,7 +556,7 @@ func (d *DavClient) Readdir(path string, detail bool) (ret []Dnode, err error) {
if name == "" || name == "/" {
name = "."
}
if strings.Index(name, "/") >= 0 {
if strings.Contains(name, "/") {
continue
}
if name == "._.DS_Store" || name == ".DS_Store" {
Expand Down