Version (1.34 KB) by Corey
Function returns all subfiles, subdirectories, and size of a directory
Updated 3 Jul 2014

View License

This function takes in an absolute folder directory and returns the absolute path of all subfiles, subfolders, and the size of the directory.
This function helped me create an automatic backup script on my computer.

Cite As

Corey (2024). rdir.m (https://www.mathworks.com/matlabcentral/fileexchange/47125-rdir-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Search Path in Help Center and MATLAB Answers

Inspired: genToolboxHelp

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

No longer requires the last character of the absolute directory be '\'. Allows you to call rdir(cd) instead of rdir([cd '\']) for increased ease of use.