harvester/monitorplugins/mmcplugin/src/mmcfilelist.cpp
branchRCL_3
changeset 26 9f21bab39f42
parent 22 ab88d4a85041
child 27 4a4892eec172
--- a/harvester/monitorplugins/mmcplugin/src/mmcfilelist.cpp	Tue Apr 27 17:05:23 2010 +0300
+++ b/harvester/monitorplugins/mmcplugin/src/mmcfilelist.cpp	Tue May 11 16:36:55 2010 +0300
@@ -157,11 +157,33 @@
 						{
 						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 );