Commit a96adb3
fix: Update directory mtime when re-listing already-sealed directories
When a directory is re-listed after being sealed (e.g., after external
file additions), its mtime needs to be updated to reflect the latest
child modification time. This fix ensures that for the `inode != parent`
path in `listObjectsSlurp`, when `alreadySealed && hasItems`, we call
`updateDirectoryMtime()` to update the directory's mtime from its
children.
This resolves the TestDirMTime failure where dir2's mtime was not being
updated after newfile was added externally, because the update logic
only existed in the `inode == parent` path.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 641e380 commit a96adb3
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
395 | 400 | | |
396 | 401 | | |
397 | 402 | | |
| |||
410 | 415 | | |
411 | 416 | | |
412 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
413 | 423 | | |
414 | 424 | | |
415 | 425 | | |
| |||
0 commit comments