aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-05-03 13:13:08 -0700
committerChris Lu <chris.lu@gmail.com>2019-05-03 13:13:11 -0700
commitbfbecd7253e69d3aa8e4d1c3897051b0f100bd57 (patch)
tree04471fb3660a52ae9cfb135ffba3c6b2b9b8d33e /weed/filer2
parent602d63eb4c045afdd6a50396dac7810b6657745c (diff)
downloadseaweedfs-bfbecd7253e69d3aa8e4d1c3897051b0f100bd57.tar.xz
seaweedfs-bfbecd7253e69d3aa8e4d1c3897051b0f100bd57.zip
webdav: fix directory creation
Diffstat (limited to 'weed/filer2')
-rw-r--r--weed/filer2/filer_client_util.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/filer_client_util.go b/weed/filer2/filer_client_util.go
index 829c652da..0986a54cd 100644
--- a/weed/filer2/filer_client_util.go
+++ b/weed/filer2/filer_client_util.go
@@ -105,8 +105,8 @@ func GetEntry(ctx context.Context, filerClient FilerClient, fullFilePath string)
glog.V(3).Infof("read %s request: %v", fullFilePath, request)
resp, err := client.LookupDirectoryEntry(ctx, request)
if err != nil {
- if err == ErrNotFound {
- return nil
+ if err == ErrNotFound || strings.Contains(err.Error(), ErrNotFound.Error()) {
+ return ErrNotFound
}
glog.V(3).Infof("read %s attr %v: %v", fullFilePath, request, err)
return err