PSDirectoryTree

1.1.6

Visualizes directory structures as trees or JSON, with support for .gitignore and output to file.

Minimum PowerShell version

7.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSDirectoryTree

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSDirectoryTree

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 Vikansys AB. Licensed under the MIT License.

Package Details

Author(s)

  • Tobias Wedelin

Tags

filesystem tree json directory gitignore utility file folder structure explorer powershell

Functions

Get-DirectoryTree

Dependencies

This module has no dependencies.

Release Notes

📦 PSDirectoryTree v1.1.6 - 2025-05-04
       
🐛 Fixes
🧹 Fixed incorrect translation of .gitignore patterns

---

📦 PSDirectoryTree v1.1.5 - 2025-05-03
This release introduces smarter .gitignore handling, improved filtering performance, and new diagnostic output via -Verbose.

🚀 New Features
✅ Support for .gitignore negation patterns (e.g. !important.log)

🗣️ Added -Verbose flag to trace ignore rule application and file skipping decisions

🛠 Improvements
⚙️ .gitignore rules are now loaded per folder, mirroring how Git scopes them

⚡ Filtering logic optimized via pattern caching and rule grouping by path

🐛 Fixes
🧹 Fixed incorrect translation of .gitignore patterns

🔕 Missing .gitignore files no longer trigger errors

FileList

Version History

Version Downloads Last updated
1.1.6 (current version) 15 5/4/2025