filebrowser/src/FBFileOps.cpp
branchRCL_3
changeset 12 aefcba28a3e0
parent 0 d6fe6244b863
--- a/filebrowser/src/FBFileOps.cpp	Tue May 11 16:14:15 2010 +0300
+++ b/filebrowser/src/FBFileOps.cpp	Tue May 25 12:43:15 2010 +0300
@@ -332,7 +332,11 @@
                     {
                     path.Append(entry.iName);
                     path.Append(_L("\\"));
-                    DoFindEntries(aFileName, path);
+                    // test path.Left(iBuf2.Length()).Compare(iBuf2) - to prevent never ending recursive copy (in case of copy folder under itself)
+                    if( iRecursiveState == EFileOpCopy && path.Left(iBuf2.Length()).Compare(iBuf2) )
+                        {
+                        DoFindEntries(aFileName, path);
+                        }
                     }
                 }
             if ( iFileManObserverResult == MFileManObserver::ECancel )