https://github.com/dastergon/fstree
A tool that generates a depth indented listing of files and sub-directories in a tree-like format.
https://github.com/dastergon/fstree
go golang liunx tree
Last synced: 19 days ago
JSON representation
A tool that generates a depth indented listing of files and sub-directories in a tree-like format.
- Host: GitHub
- URL: https://github.com/dastergon/fstree
- Owner: dastergon
- License: mit
- Created: 2018-02-26T23:19:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T23:53:11.000Z (about 7 years ago)
- Last Synced: 2025-02-14T01:18:52.986Z (2 months ago)
- Topics: go, golang, liunx, tree
- Language: Go
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fstree
fstree is a recursive directory listing tool that generates a depth indented listing of files and sub-directories in a tree-like format.
fstree is an implementation of the [tree(1)](https://linux.die.net/man/1/tree) command line utility in Go.
## Installation
go get -u github.com/dastergon/fstree
## Example
Execute the following command to the current working directory.```bash
$ fstree .
```Expected output:
```
.
├── LICENSE
├── README.md
└── fstree.go0 directories, 3 files
```## Usage
```
Usage: fstree [options...]
-L int Max display depth of the directory tree. (default -1)
-a All files are printed (included hidden files).
-d List directories only.
-f Prints the full path prefix for each file.
-filelimit int Do not descend directories that contain more than # entries. (default -1)
-o string Send output to filename.
-p Print the file type and permissions for each file.
-version Outputs the version of fstree.
```