File Exchange

image thumbnail

rdir.m

version 1.1.0.0 (1.34 KB) by Corey
Function returns all subfiles, subdirectories, and size of a directory

16 Downloads

Updated 03 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 (2020). rdir.m (https://www.mathworks.com/matlabcentral/fileexchange/47125-rdir-m), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Jan

Updates

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.

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

Inspired: genToolboxHelp