filebrowser/engine/FBFileOps.cpp
changeset 51 b048e15729d6
parent 31 e7a04a6385be
--- a/filebrowser/engine/FBFileOps.cpp	Mon Aug 23 15:50:54 2010 +0300
+++ b/filebrowser/engine/FBFileOps.cpp	Fri Sep 03 17:11:21 2010 +0300
@@ -391,6 +391,8 @@
             {
             TRAP(err, DoFindEntriesRecursiveL(_L("*"), sourcePath));    // recursively under directories of current directory entry
             }
+        // ensure that target folder exists in case of copying empty folder
+        BaflUtils::EnsurePathExistsL(iFs, targetPath);
         // a path has a trailing backslash so it needs to be removed before the call
         err = FileOpAttribs(targetPath.Left(targetPath.Length()-1), aSourceEntry.iEntry.iAtt, 0, 0, 0);
         }