DirSize

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.

引用

Richard Moore (2026). DirSize (https://jp.mathworks.com/matlabcentral/fileexchange/41300-dirsize), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: DirSizePretty

カテゴリ

Help Center および MATLAB AnswersFile Operations についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート 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