geigi / cozy

🎧 Listen to audio books 📚 on Linux
https://cozy.sh
GNU General Public License v3.0
1.09k stars 85 forks source link

Bug: Cozy begins indexing folder immediately upon adding it to Storage list. Deleting it from storage list before job is complete leaves you unable to mass remove the files from that folder. #745

Closed meixiexun closed 7 months ago

meixiexun commented 1 year ago

Bug/Feature description

Since Cozy doesn't require a confirmation before indexing files from folders added, if you delete the folder from the Storage list while Cozy is indexing, you're left with files in your library you cannot remove en masse. You must either

  1. Manually delete them from the library. Not ideal because of effort and because Cozy's only delete option also deletes the file from the harddrive, this is not ideal if the user misclicked and added the wrong file
  2. Re-add the folder to Cozy, wait for it to re-index everything, then remove the folder from Cozy.

Steps to reproduce

  1. Preferences > Storage
  2. Add folder with decent amount of files in it so that indexing takes longer than a few seconds
  3. While Cozy is indexing, delete the folder you just added
  4. Files will appear in Cozy library without way to easily remove them

System Information