DirSize

Determine the size of a folder/directory in bytes, including all subdirectories.

Ahora está siguiendo esta publicación

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.

Citar como

Richard Moore (2026). DirSize (https://la.mathworks.com/matlabcentral/fileexchange/41300-dirsize), MATLAB Central File Exchange. Recuperado .

Agradecimientos

Inspiración para: DirSizePretty

Categorías

Más información sobre File Operations en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
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