Version (1.61 KB) by Yanai
Calculate total size of sub-folders recursively


Updated Mon, 01 Nov 2010 06:02:46 +0000

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 (2023). folderSizeTree (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

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