bytes = DirSize('pathOfInterest');
Sometimes I write a script that needs to know how large directories are. I couldn't find a function to already do this, so took a stab at it.
Richard Moore (2022). DirSize (https://www.mathworks.com/matlabcentral/fileexchange/41300-dirsize), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!