diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-03 13:13:08 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-03 13:13:11 -0700 |
| commit | bfbecd7253e69d3aa8e4d1c3897051b0f100bd57 (patch) | |
| tree | 04471fb3660a52ae9cfb135ffba3c6b2b9b8d33e /weed/filer2 | |
| parent | 602d63eb4c045afdd6a50396dac7810b6657745c (diff) | |
| download | seaweedfs-bfbecd7253e69d3aa8e4d1c3897051b0f100bd57.tar.xz seaweedfs-bfbecd7253e69d3aa8e4d1c3897051b0f100bd57.zip | |
webdav: fix directory creation
Diffstat (limited to 'weed/filer2')
| -rw-r--r-- | weed/filer2/filer_client_util.go | 4 |
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 |
