Repository navigation
Conversation
Keep each destination local and transport the encrypted sync file with the user’s own tool. Compare content versions under a persistent OS lock in the local cache and write through a temporary file. Add regression coverage for external lock replacement and relative destination identities. Closes TooonyChen#240 Prepared with Codex.
This branch has not been deployed
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.
Summary
Users who already synchronize folders with another tool can select Local folder in Options › Sync. Finallyshell reads and writes the existing encrypted
finallyshell-sync.json; each computer chooses its own directory and uses the same sync password. The entire provider configuration remains local, following the Gist, WebDAV and S3 rules.The provider implements the existing Remote interface with content-hash versions, OS file locks in the local user cache and temporary-file replacement. Absolute directory identities reset the merge base when the destination changes. Existing merge, automatic sync and force-replace behavior is retained; external tools handle propagation and conflict copies as documented in both languages.
This independent branch uses the existing payload schema. Saved command data also travels through the folder when the separate command-sync feature is installed (Refs #238); portable private key paths remain a separate feature (Refs #237).
Closes #240
Testing
go test -race -timeout 20m ./internal/appin 610 seconds after the default 600-second package limit was reached. Only three failures remain, reproduced on unchanged base78c2f91:TestBackgroundImage,TestBackgroundReadsOffUIThreadandTestCommandBarPage. All added tests pass; no race reports were found.Local folder options (English and Simplified Chinese)
Prepared with Codex.