GNOME Bugzilla – Bug 587698
Unable to import directory again after it's renamed if duplicate check is enabled
Last modified: 2018-07-01 08:54:55 UTC
Steps to reproduce: 1. Place a couple of images in /home/username/Desktop/testpics/ 2. Import the files with duplicate check enabled 3. Rename the folder to holiday_pictures 4. Re-import the images from the new folder (because the old images can't be shown any more!) This results in a very useful "Import error" dialogs! The problem doesn't exist when dupe check isn't enabled, but it happens to be enabled by default so this isn't exactly user friendly feature. System.IO.FileNotFoundException: file:///home/username/Desktop/testpics/_MG_9926.CR2 at Gnome.Vfs.Vfs.ThrowException (System.String uri, Result result) [0x00000] at Gnome.Vfs.Vfs.ThrowException (Gnome.Vfs.Uri uri, Result result) [0x00000] at Gnome.Vfs.FileInfo..ctor (Gnome.Vfs.Uri uri, FileInfoOptions options) [0x00000] at Gnome.Vfs.FileInfo..ctor (System.String uri, FileInfoOptions options) [0x00000] at PhotoStore.CheckForDuplicate (System.Uri uri) [0x00044] in /home/username/development/f-spot/src/PhotoStore.cs:154 at FileImportBackend.Step (.StepStatusInfo& status_info) [0x00112] in /home/username/development/f-spot/src/FileImportBackend.cs:278
Created attachment 137804 [details] [review] Importing renamed directory gives error messages if dupe check is enabled
The folder bar might be the solution to this problem, without needing to import again. If we could make it such that the folder bar can notice which folders are missing and mark them as such, we could add a menu item "Find missing folder", where you can specify the location of the renamed folder. This would cause F-Spot to link the files on disk back with the items in the database. This is how Lightroom does it and it's really smooth.
Comment on attachment 137804 [details] [review] Importing renamed directory gives error messages if dupe check is enabled I've changed the way duplicate detection works, so this should be updated. Like you mention yourself in the patch: this won't work for networked sources. We need to think about what to do with this.
f-spot is not under active development anymore, has not seen code changes for five years, and saw its last tarball release in the year 2010. Its codebase has been archived: https://gitlab.gnome.org/Archive/f-spot/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.