mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-07-28 01:27:58 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user