DirSizePretty
directory_path = 'C:\';
byteCount = DirSize(directory_path);
returns the number of bytes in the directory_path (e.g. 31,400,000)
or
byteCountString = DirSizePretty(directory_path);
returns the number of bytes in a human readable string (e.g. '31.4 MB')
Also, this was inspired by Richard Moore's DirSize, but I found that DirSize.m needed to be added to the Matlab path to function, something that I don't use in my applications. This version works without adding to the Matlab path, although that should still work
Citar como
David Freedman (2024). DirSizePretty (https://www.mathworks.com/matlabcentral/fileexchange/72960-dirsizepretty), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: DirSize
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |