Mintoris Forum

Author Topic: Recursive file and folder sizes  (Read 1653 times)


  • Sr. Member
  • ****
  • Posts: 116
Recursive file and folder sizes
« on: Apr 18, 2014, 11:21 PM »
This code snippet arises from a discussion in thread:

It prints file and folder sizes, but limits the printed details to whatever recursion depth is set by parameter.

I chose to ignore the advice not to return a value in a recursive function but it seems to work OK; your mileage may vary‼