toStringDefault
Converts the result to a structured text representation.
Renders the directory tree in the following format:
Directory paths end with
/
and increase indent by 2 spaces per levelFile paths with metadata in parentheses (size, line count if available, "hidden" if the file is hidden)
Filtered results show only matching entries
Example:
/project/
src/
Main.kt (1.5 KiB, 42 lines)
Utils.kt (0.8 KiB, 28 lines)
README.md (2.1 KiB, 67 lines)
.gitignore (0.1 KiB, 12 lines, hidden)
Content copied to clipboard
Return
formatted text representation of the directory tree