nemo r92 - trunk/metadata
- From: arj svn gnome org
- To: svn-commits-list gnome org
- Subject: nemo r92 - trunk/metadata
- Date: Fri, 22 Feb 2008 12:44:05 +0000 (GMT)
Author: arj
Date: Fri Feb 22 12:44:05 2008
New Revision: 92
URL: http://svn.gnome.org/viewvc/nemo?rev=92&view=rev
Log:
Swallow dir not found exception
Modified:
trunk/metadata/MetadataStore.cs
Modified: trunk/metadata/MetadataStore.cs
==============================================================================
--- trunk/metadata/MetadataStore.cs (original)
+++ trunk/metadata/MetadataStore.cs Fri Feb 22 12:44:05 2008
@@ -885,18 +885,22 @@
}
// then recurse
- string[] subdirs = Directory.GetDirectories(directory_path);
- foreach (string subdir in subdirs) {
-
- if (!directory_is_good(subdir))
- continue;
-
- string tmp_subdir = subdir;
-
- if ((System.IO.File.GetAttributes(subdir) & FileAttributes.ReparsePoint) != FileAttributes.ReparsePoint) {
- add_low_priority_db_work(TurnEnumerableIntoEnumerator(db_sync_with_filesystem(tmp_subdir)));
- dir_sync_count += 1;
+ try {
+ string[] subdirs = Directory.GetDirectories(directory_path);
+ foreach (string subdir in subdirs) {
+
+ if (!directory_is_good(subdir))
+ continue;
+
+ string tmp_subdir = subdir;
+
+ if ((System.IO.File.GetAttributes(subdir) & FileAttributes.ReparsePoint) != FileAttributes.ReparsePoint) {
+ add_low_priority_db_work(TurnEnumerableIntoEnumerator(db_sync_with_filesystem(tmp_subdir)));
+ dir_sync_count += 1;
+ }
}
+ } catch (System.IO.DirectoryNotFoundException) {
+ // swallow this error
}
// finished indexing
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]