Skip to content

Conversation

@TakashiKyoto
Copy link

Sequential file edits fail with "File modified since it was last read" showing 1-10ms timestamp differences, even with no external modifications.

Root cause: FileTime.read() stores new Date() instead of the file's actual mtime. After writes, filesystem mtime updates can lag slightly (especially Windows NTFS, WSL2), causing false positives in assert().

Fix:

  • FileTime.read() now accepts optional mtime parameter
  • All write operations pass actual file mtime after writes
  • Added 10ms tolerance in assert() for edge cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant