DirSize

版本 1.1.0.0 (1.4 KB) 作者: Richard Moore
Determine the size of a folder/directory in bytes, including all subdirectories.
656.0 次下载
更新时间 2013/4/18

查看许可证

bytes = DirSize('pathOfInterest');

Sometimes I write a script that needs to know how large directories are. I couldn't find a function to already do this, so took a stab at it.

引用格式

Richard Moore (2025). DirSize (https://www.mathworks.com/matlabcentral/fileexchange/41300-dirsize), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 File Operations 的更多信息
致谢

启发作品: DirSizePretty

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Following suggestions from Jan, help explicit checks for '.'/'..', and use of the isdir field in the structu returned by dir were added.

1.0.0.0