Skip to content

Folder watcher: ignore changes in short lived files#455

Merged
TheOneRing merged 5 commits intomainfrom
work/watcher
Aug 6, 2025
Merged

Folder watcher: ignore changes in short lived files#455
TheOneRing merged 5 commits intomainfrom
work/watcher

Conversation

@TheOneRing
Copy link
Contributor

No description provided.

@TheOneRing TheOneRing marked this pull request as ready for review August 6, 2025 09:15
@TheOneRing TheOneRing requested a review from Copilot August 6, 2025 09:15

This comment was marked as outdated.

@TheOneRing TheOneRing force-pushed the work/watcher branch 3 times, most recently from d67d9a7 to 408e9d5 Compare August 6, 2025 09:42
@TheOneRing TheOneRing enabled auto-merge (rebase) August 6, 2025 09:46
@TheOneRing TheOneRing disabled auto-merge August 6, 2025 09:48
@TheOneRing TheOneRing requested a review from Copilot August 6, 2025 09:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements logic to ignore changes in short-lived files by enhancing the folder watcher's handling of temporary files that appear and disappear quickly. It aims to reduce unnecessary processing of transient files that don't need to be synchronized.

  • Enhanced detection and filtering of temporary files that no longer exist when processed
  • Improved error handling for file name conversion in Windows folder watcher
  • Added proper enum types for Windows file change actions to improve type safety

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/libsync/csync_exclude.cpp Fixed desktop.ini exclusion pattern and added assertion for non-empty relative paths
src/gui/folderwatcher_win.h Added ChangeAction enum for Windows file system events
src/gui/folderwatcher_win.cpp Refactored file change processing with better error handling and temporary file detection
src/gui/folderwatcher.cpp Added logic to ignore changes for non-existent files unless they're tracked in the journal

@TheOneRing TheOneRing merged commit 0fa5a07 into main Aug 6, 2025
9 of 10 checks passed
@TheOneRing TheOneRing deleted the work/watcher branch August 6, 2025 10:35
@openclouders openclouders mentioned this pull request Aug 6, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant