Get folder size

Gets the size of the folder with all its contents.


path - path to the folder (you can either with a slash at the end or without)
incSubDirs - whether or not to include subdirectories in the count
size - variable for displaying the result of the procedure


The size of the folder in bytes.
If the path does not exist, the state of the size variable will remain 0.

Author: admin