Directory Functions Documentation
This file contains functions related to directory operations, including displaying directory structures.
displayDirectoryStructure
Description:
Generates a visual representation of a directory structure.
Parameters:
string $dir: The directory to start from.string $prefix: The prefix for directory levels.bool $excludeVendor: Whether to exclude the vendor directory.
Returns:
- void
Usage:
displayDirectoryStructure('/path/to/your/directory');
Example Output:
├── App
│ ├── Config
│ ├── Controllers
│ ├── Helpers
│ ├── Templates
│ └── Views
├── System
│ ├── Kernel
├── public
│ ├── css
│ ├── index.php
│ └── js