Version (1.61 KB) by Yanai
Calculate total size of sub-folders recursively
Updated 1 Nov 2010

View License

The function scans all subfolders of given directory, and returns
a list of all subfolders and their size.
The size of a folder is the sum of all its files size + sum of all its
subfolders size.

Cite As

Yanai (2024). folderSizeTree (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on File Operations in Help Center and MATLAB Answers

Inspired: BiofilmQ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes