[f-spot] Add a comment about not being duplicate code.



commit f12aabe12751afa9d8711b7f8229efadba047e3f
Author: Ruben Vermeersch <ruben savanne be>
Date:   Wed May 19 17:09:24 2010 +0200

    Add a comment about not being duplicate code.

 src/Utils/RecursiveFileEnumerator.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Utils/RecursiveFileEnumerator.cs b/src/Utils/RecursiveFileEnumerator.cs
index c7453ce..e41b908 100644
--- a/src/Utils/RecursiveFileEnumerator.cs
+++ b/src/Utils/RecursiveFileEnumerator.cs
@@ -39,6 +39,9 @@ namespace FSpot.Utils
             foreach (FileInfo info in enumerator) {
                 File file = root_dir.GetChild (info.Name);
                 
+                // The code below looks like a duplication of ScanForFiles
+                // (which could be invoked here instead), but doing so would
+                // lead to a double type query on files (using QueryInfo).
                 if (info.FileType == FileType.Regular) {
                     yield return file;
                 } else if (info.FileType == FileType.Directory && recurse) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]