Repository navigation
Ignore file events in excluded directories; sync empty files in real time - #22
Merged
Merged
Conversation
Only the initial sync honoured excluded directories. The whole tree is watched, so files that changed or were deleted in an excluded directory (or one of its subdirectories, or a built-in excluded one such as .git or obj) were uploaded or deleted remotely, producing 'not found' warnings. File events are now checked the same way the initial sync chooses directories. A file renamed into or out of an excluded directory is treated as a delete or an upload respectively. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A file was only treated as ready to upload once it was unlocked AND non-empty, so a real zero-byte file waited 30 seconds and was then skipped with a 'Timeout waiting for file ready' warning. A newly created empty file now gets a 2 second grace period for a writer to fill it, then is synced as an empty file. The 30 second limit still applies to locked files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Two problems showed up while testing a large Git branch switch on the previous release:
WINDOWS\DEPRECATED) were uploaded or deleted remotely. That produced "not found" delete warnings and created an unwantedWindowstree on the server. The old code only checked exclusions in the directory handlers, so this was there before the connection pool work, and the pool's recursive directory creation made the remote tree more complete.Timeout waiting for file ready. The initial sync was not affected.What changed
ExcludedDirectories, their subdirectories, and the built-in.git,.vs,bin,objand dotted-name exclusions.Testing
Windowsfolder: files under it and under.git,objand a dotted directory were excluded, and files under other directories and in the root were not.FIL-POHMST.SDLandSTR-POHMST.SDL, which are committed as zero-byte files in the test repo.Notes
Windowstree already uploaded to the server by earlier real-time events is not removed by this change and needs deleting by hand.🤖 Generated with Claude Code