I imported some photos in a directory, deleted that directory, and on restart, the images were still listed in F-spot's browser (I assume this is intentional), although the image content obviously was not there. I tried to delete the photos by right clicking and choosing delete from disk, and got this exception: Error loading image /home/dsd/beagle-index/05.jpg path == /home/dsd/beagle-index/06.jpg Unhandled Exception: System.IO.DirectoryNotFoundException: Destination directory not found: /home/dsd/beagle-index in [0x000c6] System.IO.File:Delete (System.String path) in <0x0003c> Photo:DeleteVersion (UInt32 version_id, Boolean remove_original) in <0x001a7> MainWindow:HandleDeleteCommand (System.Object sender, System.EventArgs args) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in <0x000bb> GtkSharp.voidObjectSignal:voidObjectCallback (IntPtr arg0, Int32 key) in (wrapper native-to-managed) GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in <0x00000> in (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00007> Gtk.Application:Run () in <0x00007> Gnome.Program:Run () in <0x0014a> Driver:Main (System.String[] args) Index: src/PhotoStore.cs =================================================================== RCS file: /cvs/gnome/f-spot/src/PhotoStore.cs,v retrieving revision 1.63 diff -u -B -p -r1.63 PhotoStore.cs --- src/PhotoStore.cs 22 May 2005 22:44:37 -0000 1.63 +++ src/PhotoStore.cs 23 May 2005 13:14:48 -0000 @@ -230,7 +230,8 @@ public class Photo : DbItem, IComparable throw new Exception ("Cannot delete original version"); string path = GetVersionPath (version_id); - File.Delete (path); + if (File.Exists (path)) + File.Delete (path); PhotoStore.DeleteThumbnail (path); version_names.Remove (version_id); @@ -434,7 +435,9 @@ public class PhotoStore : DbStore { public static void DeleteThumbnail (string path) { string uri = UriList.PathToFileUri (path).ToString (); - File.Delete (Thumbnail.PathForUri (uri, ThumbnailSize.Large)); + string path = Thumbnail.PathForUri (uri, ThumbnailSize.Large); + if (File.Exists (path)) + File.Delete (path); } public static void MoveThumbnail (string old_path, string new_path)