fix: harden exclusive file creation and webdav writes

This commit is contained in:
OpenClaw Agent
2026-09-22 00:30:39 +08:00
parent 05af077c73
commit f3d80e939e
4 changed files with 116 additions and 163 deletions
+8
View File
@@ -107,6 +107,14 @@ func (m Multi) Create(p string) (*os.File, error) {
}
return r.Create(rel)
}
func (m Multi) CreateExclusive(p string) (*os.File, error) {
r, rel, ok := m.find(p)
if !ok {
return nil, os.ErrNotExist
}
return r.CreateExclusive(rel)
}
func (m Multi) Remove(p string) error {
r, rel, ok := m.find(p)
if !ok || rel == "" {