equal
deleted
inserted
replaced
25 #include "mdeharvestersession.h" |
25 #include "mdeharvestersession.h" |
26 #include "mdsutils.h" |
26 #include "mdsutils.h" |
27 #include "fsutil.h" |
27 #include "fsutil.h" |
28 #include "harvestercenreputil.h" |
28 #include "harvestercenreputil.h" |
29 #include "harvestereventmanager.h" |
29 #include "harvestereventmanager.h" |
|
30 #include "harvestercommon.h" |
30 #include <placeholderdata.h> |
31 #include <placeholderdata.h> |
31 #include <harvesterdata.h> |
32 #include <harvesterdata.h> |
32 #include "harvesterpluginfactory.h" |
33 #include "harvesterpluginfactory.h" |
33 |
34 |
34 // for CleanupResetAndDestroyPushL |
35 // for CleanupResetAndDestroyPushL |
133 { |
134 { |
134 continue; |
135 continue; |
135 } |
136 } |
136 else |
137 else |
137 { |
138 { |
138 name.Append( entry.iName ); |
139 // If thumbnail folder is detected, skip it |
|
140 if( entry.iName.Compare( KExludedThumbPath ) != 0 && |
|
141 entry.iName.Compare( KExludedMediaArtPath ) != 0 ) |
|
142 { |
|
143 name.Append( entry.iName ); |
|
144 } |
|
145 else |
|
146 { |
|
147 continue; |
|
148 } |
139 } |
149 } |
140 |
150 |
141 if ( entry.IsDir() ) |
151 if ( entry.IsDir() ) |
142 { |
152 { |
143 // If path is too long with backslash, skip it as the file cannot be supported |
153 // If path is too long with backslash, skip it as the file cannot be supported |
155 |
165 |
156 if ( IsDescInArray( pathOnly, iIgnorePaths ) ) |
166 if ( IsDescInArray( pathOnly, iIgnorePaths ) ) |
157 { |
167 { |
158 continue; |
168 continue; |
159 } |
169 } |
160 |
|
161 // check if folder is hidden or system folder |
|
162 TUint att = 0; |
|
163 TInt attErr = aFs.Att( name, att ); |
|
164 if ( attErr == KErrNone ) |
|
165 { |
|
166 if ( att & KEntryAttHidden || att & KEntryAttSystem ) |
|
167 { |
|
168 continue; |
|
169 } |
|
170 } |
|
171 |
170 |
172 path->AppendL( name ); |
171 path->AppendL( name ); |
173 } |
172 } |
174 else |
173 else |
175 { |
174 { |
176 // check if file is hidden or system file |
|
177 TUint att = 0; |
|
178 TInt attErr = aFs.Att( name, att ); |
|
179 if ( attErr == KErrNone ) |
|
180 { |
|
181 if ( att & KEntryAttHidden || att & KEntryAttSystem ) |
|
182 { |
|
183 continue; |
|
184 } |
|
185 } |
|
186 |
|
187 CPlaceholderData* phData = CPlaceholderData::NewL(); |
175 CPlaceholderData* phData = CPlaceholderData::NewL(); |
188 CleanupStack::PushL( phData ); |
176 CleanupStack::PushL( phData ); |
189 phData->SetUri( name ); |
177 phData->SetUri( name ); |
190 phData->SetModified( entry.iModified ); |
178 phData->SetModified( entry.iModified ); |
191 phData->SetFileSize( entry.iSize ); |
179 phData->SetFileSize( entry.iSize ); |