filesystemuis/memscaneng/serversrc/msengfileextscanner.cpp
branchRCL_3
changeset 15 18e505e3f370
parent 0 6a9f87576119
equal deleted inserted replaced
14:efe289f793e7 15:18e505e3f370
   164             }
   164             }
   165 
   165 
   166         if( addSize )
   166         if( addSize )
   167             {
   167             {
   168             // Add size of object
   168             // Add size of object
   169             InfoArray().AddSizeByExtL(iCurrentExtensionIndex, aEntry.iSize);
   169             InfoArray().AddSizeByExtL(iCurrentExtensionIndex,  aEntry.FileSize() );
   170 
   170 
   171 #ifdef __SHOW_RDEBUG_PRINT_
   171 #ifdef __SHOW_RDEBUG_PRINT_
   172         	const TInt pathlength = aFullFileNameAndPath.Length();
   172         	const TInt pathlength = aFullFileNameAndPath.Length();
   173         	
   173         	
   174         	if ( pathlength < KMaxFileName )
   174         	if ( pathlength < KMaxFileName )
   175         		{	
   175         		{	
   176         		RDebug::Print(_L("File: %S, extension number: %d, size: %d"), 
   176         		RDebug::Print(_L("File: %S, extension number: %d, size: %d"), 
   177         		    &aFullFileNameAndPath, iCurrentExtensionIndex, aEntry.iSize);
   177         		    &aFullFileNameAndPath, iCurrentExtensionIndex,  aEntry.FileSize());
   178         		}
   178         		}
   179         	else
   179         	else
   180         		{
   180         		{
   181         		RDebug::Print(_L("File: see next line, extension number: %d, size: %d"), 
   181         		RDebug::Print(_L("File: see next line, extension number: %d, size: %d"), 
   182         		    iCurrentExtensionIndex, aEntry.iSize );
   182         		    iCurrentExtensionIndex, aEntry.FileSize() );
   183         		RDebug::Print(_L("Can not print %d characters long file name"), pathlength );
   183         		RDebug::Print(_L("Can not print %d characters long file name"), pathlength );
   184         		}
   184         		}
   185 #endif // __SHOW_RDEBUG_PRINT_
   185 #endif // __SHOW_RDEBUG_PRINT_
   186 
   186 
   187             // We processed this one
   187             // We processed this one
   196 #endif // __SHOW_RDEBUG_PRINT_
   196 #endif // __SHOW_RDEBUG_PRINT_
   197     
   197     
   198         // Make sure other than native applications are not calculated
   198         // Make sure other than native applications are not calculated
   199         if( iCurrentExtensionIndex == EExtSis || iCurrentExtensionIndex == EExtSisx )
   199         if( iCurrentExtensionIndex == EExtSis || iCurrentExtensionIndex == EExtSisx )
   200             {
   200             {
   201             InfoArray().AddSizeByExtL(iCurrentExtensionIndex, aEntry.iSize);
   201             InfoArray().AddSizeByExtL(iCurrentExtensionIndex, aEntry.FileSize() );
   202             }
   202             }
   203         }
   203         }
   204         
   204         
   205     return response;
   205     return response;
   206     }
   206     }