equal
deleted
inserted
replaced
453 iFirstUnprocessed += count; |
453 iFirstUnprocessed += count; |
454 |
454 |
455 for (TInt i = (iFirstUnprocessed - count); i < iFirstUnprocessed; ++i) |
455 for (TInt i = (iFirstUnprocessed - count); i < iFirstUnprocessed; ++i) |
456 { |
456 { |
457 const TEntry& entry = iEntries[i]; |
457 const TEntry& entry = iEntries[i]; |
|
458 TInt len = entry.iName.Length(); |
|
459 if(iCurrentPath.Length() + len > KMaxFileName) |
|
460 { |
|
461 __FLOG_VA(_L8("Full name exceeds KMaxFileName, ignored.")); |
|
462 continue; |
|
463 } |
|
464 |
458 iCurrentPath.Append(entry.iName); |
465 iCurrentPath.Append(entry.iName); |
|
466 |
459 __FLOG_VA((_L("Process path %S name %S"), &iCurrentPath, &entry.iName)); |
467 __FLOG_VA((_L("Process path %S name %S"), &iCurrentPath, &entry.iName)); |
460 #ifdef __FLOG_ACTIVE |
468 #ifdef __FLOG_ACTIVE |
461 TBuf8<KMTPMaxFullFileName> tmp; |
469 TBuf8<KMTPMaxFullFileName> tmp; |
462 tmp.Copy(iCurrentPath); |
470 tmp.Copy(iCurrentPath); |
463 TInt pathLen=iCurrentPath.Length(); |
471 TInt pathLen=iCurrentPath.Length(); |
476 __FLOG_VA(_L8("Entry - ")); |
484 __FLOG_VA(_L8("Entry - ")); |
477 __FLOG_VA((_L8("%S"), &tmp)); |
485 __FLOG_VA((_L8("%S"), &tmp)); |
478 } |
486 } |
479 #endif // __FLOG_ACTIVE |
487 #endif // __FLOG_ACTIVE |
480 |
488 |
481 TInt len = entry.iName.Length(); |
|
482 TInt totalLen = iCurrentPath.Length(); |
|
483 if(totalLen > KMaxFileName) |
|
484 { |
|
485 // Remove filename part |
|
486 iCurrentPath.SetLength(totalLen - len); |
|
487 __FLOG_VA(_L8("Full name exceeds KMaxFileName, ignored.")); |
|
488 continue; |
|
489 } |
|
490 TUint32 handle = 0; |
489 TUint32 handle = 0; |
491 TMTPFormatCode format; |
490 TMTPFormatCode format; |
492 if(-- iObjectNeedToScan <=0 && iAllRootScaned) |
491 if(-- iObjectNeedToScan <=0 && iAllRootScaned) |
493 { |
492 { |
494 iSkipCurrentStorage = ETrue; |
493 iSkipCurrentStorage = ETrue; |