javamanager/javabackup/midp2backup/src.s60/midp2backupplugin.cpp
branchRCL_3
changeset 60 6c158198356e
parent 25 9ac0a0a7da70
child 67 63b81d807542
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
    27 #include "javastorage.h"
    27 #include "javastorage.h"
    28 
    28 
    29 #include "javacommonutils.h"
    29 #include "javacommonutils.h"
    30 #include "logger.h"
    30 #include "logger.h"
    31 
    31 
    32 #include <sbdefs.h>
    32 #include <connect/sbdefs.h>
    33 #include <s32mem.h>
    33 #include <s32mem.h>
    34 #include <s32file.h>
    34 #include <s32file.h>
    35 #include <f32file.h>
    35 #include <f32file.h>
    36 #include <apgcli.h>
    36 #include <apgcli.h>
    37 
    37 
   472         CFileMan* fileMan = CFileMan::NewL(iFs);
   472         CFileMan* fileMan = CFileMan::NewL(iFs);
   473 
   473 
   474         CleanupStack::PushL(fileMan);
   474         CleanupStack::PushL(fileMan);
   475 
   475 
   476         // Copy to new place
   476         // Copy to new place
   477         iFs.MkDir(path_new);
   477         TInt err = iFs.MkDir(path_new);
       
   478         ILOG2(EBackup, "MkDir, status: %d, path=%S", err, path_new.PtrZ());
       
   479 
   478         path_old.Append(KStarWildCard);
   480         path_old.Append(KStarWildCard);
   479         TInt  err = fileMan->Copy(path_old, path_new);
   481         err = fileMan->Copy(path_old, path_new);
   480 
   482 
   481         ILOG1(EBackup, "File copy, status: %d", err);
   483         ILOG1(EBackup, "File copy, status: %d", err);
   482 
       
   483         User::LeaveIfError(err);
       
   484 
   484 
   485         CleanupStack::PopAndDestroy();
   485         CleanupStack::PopAndDestroy();
   486     }
   486     }
   487 }
   487 }
   488 
   488