Open acastrovargas opened 8 months ago
The PR is still not integrated?
Just note that the script will have to iterate through every sub-folder and its contents to calculate this, every time the page refreshes. I had implemented this on a custom version of mine but had to turn if off due to the performance impact. If you have few files and all with a certain acceptable size, no problem, otherwise the HDD will be taxed immensely.
Thanks, I was about to implement, for this reason I will not do it
@ner00 No, the script does not iterate through every sub-folder and its contents to calculate disk space. It uses efficient built-in PHP functions (disk_total_space() and disk_free_space()) that directly query the operating system, so it won't heavily tax the HDD.
@hppanpaliya my misunderstanding then, I was thinking of folder ~file~ size, which is obviously different and that does have to work in the way I described.
The full size is not real, it only shows the value of files and not the contents in the folders.