DirSize
Version 1.1.0.0 (1,38 ko) par
Richard Moore
Determine the size of a folder/directory in bytes, including all subdirectories.
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.
Citation pour cette source
Richard Moore (2026). DirSize (https://fr.mathworks.com/matlabcentral/fileexchange/41300-dirsize), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2012b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur File Operations dans Help Center et MATLAB Answers
Tags
Remerciements
A inspiré : DirSizePretty
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 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 |
