Rev 9689 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9689 | Rev 9693 | ||
---|---|---|---|
Line 489... | Line 489... | ||
489 | :struct DIR_SIZE |
489 | :struct DIR_SIZE |
490 | { |
490 | { |
491 | BDVK dir_info; |
491 | BDVK dir_info; |
492 | dword folders; |
492 | dword folders; |
493 | dword files; |
493 | dword files; |
494 | dword bytes; |
494 | dword sizelo; |
495 | dword bytes_high; |
495 | dword sizehi; |
496 | dword get(); |
496 | dword get(); |
497 | dword calculate_loop(); |
497 | dword calculate_loop(); |
498 | }; |
498 | }; |
Line 499... | Line 499... | ||
499 | 499 | ||
500 | :dword DIR_SIZE::get(dword way1) |
500 | :dword DIR_SIZE::get(dword way1) |
501 | { |
501 | { |
502 | folders = files = bytes = bytes_high = 0; |
502 | folders = files = sizelo = sizehi = 0; |
503 | if (!way1) return 0; |
503 | if (!way1) return 0; |
504 | calculate_loop(way1); |
504 | calculate_loop(way1); |
Line 505... | Line 505... | ||
505 | } |
505 | } |
Line 526... | Line 526... | ||
526 | calculate_loop(cur_file); |
526 | calculate_loop(cur_file); |
527 | } |
527 | } |
528 | else |
528 | else |
529 | { |
529 | { |
530 | GetFileInfo(cur_file, #dir_info); |
530 | GetFileInfo(cur_file, #dir_info); |
531 | bytes += dir_info.sizelo; |
531 | sizelo += dir_info.sizelo; |
532 | bytes_high += dir_info.sizehi; |
532 | sizehi += dir_info.sizehi; |
533 | files++; |
533 | files++; |
534 | } |
534 | } |
535 | } |
535 | } |
536 | free(cur_file); |
536 | free(cur_file); |
537 | free(dirbuf); |
537 | free(dirbuf); |