filebrowser/engine/FBFileOps.cpp
changeset 48 da3ec8478e66
parent 35 98924d2efce9
equal deleted inserted replaced
47:11fa016241a4 48:da3ec8478e66
   389         TRAP(err, DoFindEntries(_L("*"), sourcePath));              // entries under current directory entry
   389         TRAP(err, DoFindEntries(_L("*"), sourcePath));              // entries under current directory entry
   390         if ( iFileManObserverResult != MFileManObserver::ECancel )
   390         if ( iFileManObserverResult != MFileManObserver::ECancel )
   391             {
   391             {
   392             TRAP(err, DoFindEntriesRecursiveL(_L("*"), sourcePath));    // recursively under directories of current directory entry
   392             TRAP(err, DoFindEntriesRecursiveL(_L("*"), sourcePath));    // recursively under directories of current directory entry
   393             }
   393             }
       
   394         // ensure that target folder exists in case of copying empty folder
       
   395         BaflUtils::EnsurePathExistsL(iFs, targetPath);
   394         // a path has a trailing backslash so it needs to be removed before the call
   396         // a path has a trailing backslash so it needs to be removed before the call
   395         err = FileOpAttribs(targetPath.Left(targetPath.Length()-1), aSourceEntry.iEntry.iAtt, 0, 0, 0);
   397         err = FileOpAttribs(targetPath.Left(targetPath.Length()-1), aSourceEntry.iEntry.iAtt, 0, 0, 0);
   396         }
   398         }
   397 
   399 
   398     else if (aSourceEntry.iEntry.IsDir())
   400     else if (aSourceEntry.iEntry.IsDir())