internxt / drive-desktop

https://internxt.com/drive
GNU Affero General Public License v3.0
168 stars 21 forks source link

[] fix: ignore file creation after move #389

Closed JoanVicens closed 1 year ago

JoanVicens commented 1 year ago

Why: When a file has been moved, after the move is done we get a file creation callback.

How: Added a rename file domain event that stores a combination of the local file data, the dev, and ino values. When a file is going to be created it searches if there is a file on the destination. If it exists search for a move event and compares the dev and ino. If they are the same the file that is going to be created is ignored and the id of that file is returned

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint