TagStudioDev / TagStudio

A User-Focused Photo & File Management System
GNU General Public License v3.0
2.84k stars 265 forks source link

[BUG] "Fix Unlinked Entries"/"Refresh Directories" Creates Duplicate Entries for Moved Files #179

Closed CyanVoxel closed 3 weeks ago

CyanVoxel commented 1 month ago

TagStudio Version

Alpha v9.2.0

Operating System

Windows 10 22H2

Describe The Issue

The "Fixed Unlinked Entries" does not take into account entries for existing files when relinking entries, thus creating duplicate entries for the same files.

Steps to Reproduce

  1. Create a library full of files
  2. Move those files into a subfolder (this breaks the links)
  3. Refresh the library directories (this creates new entries for the files while not touching the old unlinked ones)
  4. Use the "Fix Unlinked Entries" option. The old entries are now relinked, but without reconciling the duplicate entries that were created in the meantime image