rdir.m

Version 1.1.0.0 (1.34 KB) by Corey
Function returns all subfiles, subdirectories, and size of a directory
1.2K Downloads
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
Categories
Find more on Search Path in Help Center and MATLAB Answers
Acknowledgements

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
1.1.0.0

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.

1.0.0.0