Merge pull request #3123 from chengzhichao-xydt/codex/filesystem-dirfile-close

fix(filesystem): explicitly ignore Close() error on directory file descriptor
This commit is contained in:
Mauro
2026-06-14 21:21:46 +02:00
committed by GitHub
+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