Commit c8aeb26
Andrei Popescu
Fix olp::utils::Dir::Size() recursive behaviour. (#1362)
This commit fixes the recursive behaviour of the olp::utils::Dir::Size()
method to go all the way deep and find all not filtered out files to
consider for calculating the dir size.
This is done by using a queue to push every found dir inside the
currently scanned dir onto it for further dept scanning.
Relates-To: OLPEDGE-2700
Signed-off-by: Andrei Popescu <andrei.popescu@here.com>
Signed-off-by: Andrei Popescu <andrei.popescu@here.com>1 parent 16e1212 commit c8aeb26
2 files changed
+45
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
436 | 438 | | |
437 | 439 | | |
438 | 440 | | |
439 | | - | |
440 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
441 | 459 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | 460 | | |
446 | | - | |
447 | | - | |
| 461 | + | |
| 462 | + | |
448 | 463 | | |
449 | | - | |
450 | | - | |
| 464 | + | |
| 465 | + | |
451 | 466 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
| |||
474 | 478 | | |
475 | 479 | | |
476 | 480 | | |
477 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
478 | 487 | | |
479 | 488 | | |
480 | 489 | | |
| |||
485 | 494 | | |
486 | 495 | | |
487 | 496 | | |
488 | | - | |
489 | | - | |
| 497 | + | |
| 498 | + | |
490 | 499 | | |
491 | | - | |
| 500 | + | |
492 | 501 | | |
493 | 502 | | |
494 | 503 | | |
| |||
0 commit comments