webdav: fix directory renaming

This commit is contained in:
Chris Lu
2019-05-03 14:12:51 -07:00
parent bfbecd7253
commit f0f981e7c8
3 changed files with 19 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ func GetEntry(ctx context.Context, filerClient FilerClient, fullFilePath string)
resp, err := client.LookupDirectoryEntry(ctx, request)
if err != nil {
if err == ErrNotFound || strings.Contains(err.Error(), ErrNotFound.Error()) {
return ErrNotFound
return nil
}
glog.V(3).Infof("read %s attr %v: %v", fullFilePath, request, err)
return err