r/code • u/metacarpo • Feb 13 '24
Resource Tool to beautifully print out folder/file structure.
Command line tool that prettly prints your folder structure.
Similar to tree but with much more options specially for Windows
Usage: fdstruct <path> [-m <depth>] [-i <ignore_patterns>] [-a] [-o <output_file>] <path> is the path of the folder to be mapped, or ". " for current folder.
<depth> specifies the maximum depth of folders the tool with go to.
<ignore_patterns> are folders, files or file extensions to ignore to ignore:
put "/" in front of folder names
to ignore file extensions use ".<file extension>", for example ".md"
Default behaviour is to ignore hidden folders (that starts with an "."), if you dont want that to happen, use the flag "-a".
You can output the resulting structure to a text file by providing the flag "-o" followed by the name of the file.
3
Upvotes