File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -325,9 +325,16 @@ def get_netbeans_file_list(file_list):
325
325
if cur_dir and prev_dir != cur_dir :
326
326
# evaluate all matched items (from current and previous list)
327
327
matched = []
328
- for element in dir_list :
329
- if element in prev_dir_list :
330
- matched .append (element )
328
+ # Compare the Element in Previous Dir with the Elements in Current Dir
329
+ # and add the Differences to the match-List
330
+ if len (dir_list ) <= len (prev_dir_list ):
331
+ for idx , element in enumerate (dir_list ):
332
+ if element == prev_dir_list [idx ]:
333
+ matched .append (element )
334
+ else :
335
+ for idx , element in enumerate (prev_dir_list ):
336
+ if element == dir_list [idx ]:
337
+ matched .append (element )
331
338
332
339
# calculate difference between matched and length
333
340
diff = dir_depth - len (matched )
You can’t perform that action at this time.
0 commit comments