fix(filesystem): explicitly ignore Close() error on directory file descriptor

This commit is contained in:
程智超0668000959
2026-06-14 23:45:48 +08:00
parent cf67dd3851
commit df753aaebf
+1 -1
View File
@@ -1137,7 +1137,7 @@ func (r *sandboxFs) WriteFile(path string, data []byte) error {
// Sync directory to ensure rename is durable
if dirFile, err := root.Open("."); err == nil {
_ = dirFile.Sync()
dirFile.Close()
_ = dirFile.Close()
}
return nil