Commit acce232
fix: Remove lock condition from mtime update for consistency
The mtime update logic in the `inode == parent` path was inconsistent
with the `inode != parent` paths. In child directories (inode != parent),
mtime updates occur regardless of the `lock` parameter. However, parent
directories (inode == parent) only updated mtime when lock=true.
This inconsistency meant that when lock=false (e.g., called from Rename),
parent directories wouldn't get their mtime updated even when new items
were found, leading to potentially stale timestamps.
Remove the `&& lock` condition to ensure mtime updates happen consistently
across all code paths whenever a directory is already sealed but new items
are discovered during listing.
Fixes review comment from Cursor bot.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent a96adb3 commit acce232
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
439 | | - | |
| 438 | + | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
0 commit comments