Fixed copy issue in case of memory is full
authorHimanshu Talwar <himanshu.t@samsung.com>
Thu, 23 May 2013 09:58:44 +0000 (15:28 +0530)
committerHimanshu Talwar <himanshu.t@samsung.com>
Thu, 23 May 2013 09:58:44 +0000 (15:28 +0530)
Change-Id: I568e80ccf24c6c8bfdba43d321ecab4c44ac6ca8
Signed-off-by: Himanshu Talwar <himanshu.t@samsung.com>
src/GlFileListPresentationModel.cpp

index 1e337a9..32f37fd 100644 (file)
@@ -988,10 +988,14 @@ FileListPresentationModel::MoveToContentFile(const ContentId& contentId, const S
 
        r = File::Copy(filePath, destPath, false);
 
-       if ( r == E_SUCCESS )
+       if ( r == E_STORAGE_FULL)
        {
-               ContentManager::ScanFile(destPath);
+               File::Remove(destPath);
+       }
+       ContentManager::ScanFile(destPath);
 
+       if ( r == E_SUCCESS )
+       {
                if ( isCopyOperation == false)
                {
                        File::Remove(filePath);               // if Move Op remove original file