harvester/monitorplugins/mmcplugin/src/mmcfilelist.cpp
changeset 28 c461c7fa72c2
parent 25 8e4539ab1889
child 43 c5e73110f733
child 54 a3cc46f37772
--- a/harvester/monitorplugins/mmcplugin/src/mmcfilelist.cpp	Fri May 14 16:17:23 2010 +0300
+++ b/harvester/monitorplugins/mmcplugin/src/mmcfilelist.cpp	Thu May 27 13:18:43 2010 +0300
@@ -27,6 +27,7 @@
 #include "fsutil.h"
 #include "harvestercenreputil.h"
 #include "harvestereventmanager.h"
+#include "harvestercommon.h"
 #include <placeholderdata.h>
 #include <harvesterdata.h>
 #include "harvesterpluginfactory.h"
@@ -135,7 +136,16 @@
 				    }
 				else
 				    {
-				    name.Append( entry.iName );     
+                    // If thumbnail folder is detected, skip it
+				    if( entry.iName.Compare( KExludedThumbPath ) != 0 &&
+				        entry.iName.Compare( KExludedMediaArtPath ) != 0 )
+				        {
+				        name.Append( entry.iName );
+				        }
+				    else
+				        {
+				        continue;
+				        }
 				    }
 			
 				if ( entry.IsDir() )
@@ -157,33 +167,11 @@
 						{
 						continue;
 						}
-					
-                    // check if folder is hidden or system folder
-                    TUint att = 0;
-                    TInt attErr = aFs.Att( name, att );
-                    if ( attErr == KErrNone )
-                        {
-                        if ( att & KEntryAttHidden || att & KEntryAttSystem )
-                            {
-                            continue;
-                            }
-                        }
 
 					path->AppendL( name );
 					}
 				else
-					{
-			        // check if file is hidden or system file
-				    TUint att = 0;
-			        TInt attErr = aFs.Att( name, att );
-			        if ( attErr == KErrNone )
-			            {
-			            if ( att & KEntryAttHidden || att & KEntryAttSystem )
-			                {
-			                continue;
-			                }
-			            }
-				
+					{			
 					CPlaceholderData* phData = CPlaceholderData::NewL();
 					CleanupStack::PushL( phData );
 					phData->SetUri( name );