filebrowser/engine/FBFileOps.cpp
changeset 51 b048e15729d6
parent 31 e7a04a6385be
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
   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())