-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add file locking to prevent concurrency issues
Added a file lock before performing a move or copy action in the FileDifference class to ensure that no concurrent modifications can happen during operation. With this, we can prevent potential data integrity issues when the file is accessed by another process at the same time. Two additional exceptions are added to handle the cases where the file is locked by another process or other unexpected situations occur.
- Loading branch information
Showing
1 changed file
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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