8000 GitHub - spaansba/PowerTree: PowerShell module that displays directory contents in a tree format, showing file details and allowing you to filter results.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

spaansba/PowerTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerTree

A modern replacement for the tree command that lets you explore directory structures and Windows Registry with detailed information and advanced filtering possibilities.

PowerShell Gallery Version PowerShell Gallery License Platform PowerShell Version

Preview Videos

🎥 File System Explorer Demo https://github.com/user-attachments/assets/3fbe8eb4-0844-4df8-925a-0608e391be17
🗂️ Registry Explorer Demo https://github.com/user-attachments/assets/f95b4eb9-72ce-48db-aeca-0b16e81b14bf

What is PowerTree?

PowerTree is a comprehensive tree visualization tool that provides two main capabilities:

  • File System Explorer: A modern alternative to the traditional tree command with advanced filtering, sorting, and display options
  • Registry Explorer: Windows Registry visualization in tree format (Windows only)

Unlike standard tree commands, PowerTree offers detailed information display, multiple sorting options, filtering capabilities, and customizable configuration.

Installation

From PowerShell Gallery:

Install-Module PowerTree

Commands

Show-PowerTree Alias: ptree, PowerTree

A modern replacement for the tree command that lets you explore directory structures with detailed information and advanced filtering possibilities. Explore all available parameters and advanced features in the full documentation.

Example Images

File system with sizes sorted by size descending
ptree -DisplaySize -Descending -SortBySize
PowerTree with file sizes sorted by size
All display options with name sorting
ptree -DisplayAll -Descending -SortByName
PowerTree with all display options
File size filtering
ptree -FileSizeMinimum "1kb" -DisplaySize
PowerTree with file size filtering
Directory only view
ptree -DirectoryOnly -DisplaySize
PowerTree directory only view

Show-PowerTreeRegistry Alias: ptreer, PowerRegistry

Shows Windows Registry keys and values in tree format. Displays both registry keys and their values, making it easy to see the structure of any registry hive or specific key. Explore all available parameters and advanced features in the full documentation.

Example Images

Default Registry View
PowerRegistry HKLM:\SOFTWARE\ 

Default PowerTree Registry View
Filtered Registry View
PowerRegistry HKLM:\SOFTWARE\ -DisplayItemCounts -Exclude "*data*" -l 2 -UseRegistryDataTypes

Filtered PowerTree Registry View

Edit-PowerTreeConfig Alias: Edit-PowerTree, Edit-ptree

Opens the configuration file to change default settings. Set which directories to always exclude, default sorting, and tree display style. Explore all available parameters and advanced features in the full documentation.

Common Use Cases

System Administration

# Find large files consuming disk space
ptree -DisplaySize -SortBySize -Descending -FileSizeMinimum 100MB

# Document directory structure for compliance
ptree -DisplayAll -OutFile system_audit.txt

# Audit installed software and versions
Show-PowerTreeRegistry -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" -Depth 2 -OutFile "output.txt"

Development Workflows

# Exclude build artifacts and show only source files
ptree -ExcludeDirectories bin,obj,node_modules -IncludeExtensions cs,js,ts

# Check project structure and sizes
ptree -DisplaySize -ExcludeDirectories .git,.vs -Depth 3

# Export project documentation
ptree -IncludeExtensions md,txt -OutFile project_docs.txt

Documentation

For detailed parameter references and advanced usage examples:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Created by Bart Spaans

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Upcoming Features

  • Git integration (automatic .gitignore exclusion)
  • Export function signatures from JavaScript/TypeScript files
  • Access Control List (ACL) display options
  • Enhanced registry data type visualization

About

PowerShell module that displays directory contents in a tree format, showing file details and allowing you to filter results.

Resources

License

Stars

Watchers

Forks

0