Thanks to Kit Baum a new package, dirtree, is now available on SSC. dirtree shows the content of a directory, including sub-directories, as a tree. By default, files that can be opened in Stata are shown as clickable links.
For example, the directory for this project looks like this (the bench directory contains various dummy files and directories that are there for testing):
To install it you can type in Stata ssc install dirtree . Alternatively, you can go to https://github.com/maartenteaches/dirtree if you also want to look at the certification scripts (directory bench).
For example, the directory for this project looks like this (the bench directory contains various dummy files and directories that are there for testing):
Code:
. dirtree, nolink dirtree \ ├── dirtree.ado ├── dirtree.pkg ├── dirtree.sthlp ├── readme.md ├── stata.toc └── bench \ ├── dirtree.do ├── main.do ├── subroutine.do ├── totest.smcl ├── bar \ └── foo \ ├── untitled1.do ├── blup \ │ └── untitled2.do └── something
Comment