powershelltreefilesystemshidden-files

How to use "tree" command on powershell to show files as well as directories


I am trying to get full structure of my project in tree format in powershell. When I use the command tree, it only shows directories and subdirectories, but neither files nor hidden folders, such as .git

How can I show files as well?

Thank you


Solution

  • tree.com:


    Solutions:


    [1] I'm referring to files and directories on Windows that have the Hidden attribute, which is unrelated to whether their names start with . (e.g., .gitignore; it is only on Unix-like platforms that the latter are automatically considered hidden). You can set the Hidden attribute with attrib +H someDir, for instance, and clear it with attrib -H someDir. tree.com does not show such hidden items.