*! version 1.0.0 15June2023 MLB

Title

dirtree -- Display content of directory as a tree

Syntax

dirtree
[, options]

dir(directory) specify the directory; default is the current
working directory

cd change to the directory specified in dir()

hidden display hidden files and directories

onlydirs only display the directories and not the files

nolink files that can be opened in Stata are not shown as a link

Description

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.

Options

dir(directory) Specifies the directory that is to be displayed. By default
the current working directory is used

cd change the current working directory to the directory specified in dir()

hidden display hidden directories and files, that is, files and directories
starting with a "."

onlydirs Only display the directories and not the files

nolink Shows just the file names. By default files that can be opened in
Stata are shown as a link that will open that file.

Examples

dirtree

Author

Maarten Buis, University of Konstanz

maarten.buis@uni.kn