First I want to thank you for this wonderful tools. I like it and enjoy reading the code. But I have problems understanding some of the code, filter.rs.
There is get_biggest function, I guess it is to get biggest directories or sub-directories. I tried to print all items in heap before calling fill_remaining_lines function, and the heap includes every file or directory in the target directory. So it seems the secret should be in fill_remaining_lines function, but I don't see anywhere comparing the sizes or sorting in the related functions.
Can anyone explain it to me? I don't know if this is the right place to ask questions. If not, where?
Thanks again for this wonderful project.
First I want to thank you for this wonderful tools. I like it and enjoy reading the code. But I have problems understanding some of the code,
filter.rs.There is
get_biggestfunction, I guess it is to get biggest directories or sub-directories. I tried to print all items inheapbefore callingfill_remaining_linesfunction, and the heap includes every file or directory in the target directory. So it seems the secret should be infill_remaining_linesfunction, but I don't see anywhere comparing the sizes or sorting in the related functions.Can anyone explain it to me? I don't know if this is the right place to ask questions. If not, where?
Thanks again for this wonderful project.