fix: match CHFS WebDAV overwrite status

This commit is contained in:
OpenClaw Agent
2026-09-21 19:41:28 +08:00
parent 2abc3747a6
commit a1f9633d4a
+1 -2
View File
@@ -803,7 +803,6 @@ func (f *webdavStorageFS) Create(ctx context.Context, name string, body io.ReadC
if statErr != nil && !os.IsNotExist(statErr) {
return nil, false, statErr
}
created := os.IsNotExist(statErr)
file, err := f.store.Create(p)
if err != nil {
return nil, false, err
@@ -818,7 +817,7 @@ func (f *webdavStorageFS) Create(ctx context.Context, name string, body io.ReadC
return nil, false, closeErr
}
fi, err := f.info(p)
return fi, created, err
return fi, true, err
}
func (f *webdavStorageFS) RemoveAll(ctx context.Context, name string, opts *webdav.RemoveAllOptions) error {