ernilambar / foldyy
Folder tree viewer with size information - CLI tool to display folder structure with file and folder sizes.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/ernilambar/foldyy
Requires
- php: >=7.4
- symfony/console: ^5.4 || ^6.0 || ^7.0
- symfony/filesystem: ^5.4 || ^6.0 || ^7.0
- symfony/finder: ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^1
- phpunit/phpunit: ^9.5 || ^10.0
- slevomat/coding-standard: ^8
README
Folder tree viewer with size information - CLI tool to display folder structure with file and folder sizes.
Description
Foldyy is a command-line tool that displays a tree view of a folder structure with size information for each file and folder. It's useful for quickly understanding the size distribution of files and directories in a given path.
Installation
composer install
Usage
# Basic usage (saves HTML to temp directory) ./bin/foldyy /path/to/folder # Specify output directory (defaults to temp directory) ./bin/foldyy /path/to/folder --output-dir /tmp # Specify exact output file path ./bin/foldyy /path/to/folder --output tree.html # Output only the file path (porcelain mode, useful for scripting) ./bin/foldyy /path/to/folder --output-dir /tmp --porcelain
Features
- HTML Tree View: Generate interactive HTML with collapsible folders
- Size Information: Show file and folder sizes in human-readable format
- Depth Control: Limit the maximum depth of folder scanning
- Collapsible Folders: Click folders to expand/collapse
- Flexible Output: Save to temp directory, custom directory, or specific file
- Porcelain Mode: Output only file path for easy parsing in scripts
License
MIT
Author
Nilambar Sharma - nilambar@outlook.com