Skip to content

This script calculates and displays the sizes of folders (and optionally files) in a directory tree. It supports filtering by minimum size and allows for recursive analysis up to a specified depth

License

Notifications You must be signed in to change notification settings

LucaLeukert/du-anal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Disk Usage Analysis (du-anal)

A PowerShell script to analyze disk usage by calculating and displaying folder and file sizes in a directory tree. Supports filtering by size, recursive analysis, and customizable depth.

Features

  • Analyze folder sizes in a directory tree.
  • Filter results by minimum size (default: 20 MB).
  • Optionally include individual file sizes in the output.
  • Customize recursion depth for analysis.
  • Color-coded output based on folder size.

Usage

Run the script with the following parameters:

.\DiskUsage.ps1 -Path <DirectoryPath> -Depth <MaxDepth> -MinSize <SizeInMB> -PrintFiles

About

This script calculates and displays the sizes of folders (and optionally files) in a directory tree. It supports filtering by minimum size and allows for recursive analysis up to a specified depth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published