Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhdaly/printfiletree.jl
`tree` implementation in Julia
https://github.com/nhdaly/printfiletree.jl
filesystem julia pretty-printing
Last synced: 2 days ago
JSON representation
`tree` implementation in Julia
- Host: GitHub
- URL: https://github.com/nhdaly/printfiletree.jl
- Owner: NHDaly
- License: other
- Created: 2018-07-18T00:47:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-10T21:34:01.000Z (almost 5 years ago)
- Last Synced: 2024-10-21T05:25:52.723Z (25 days ago)
- Topics: filesystem, julia, pretty-printing
- Language: Julia
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PrintFileTree
[![Build Status](https://travis-ci.org/NHDaly/PrintFileTree.jl.svg?branch=master)](https://travis-ci.org/NHDaly/PrintFileTree.jl)
[![Build status](https://ci.appveyor.com/api/projects/status/a2map67trmutdf6s?svg=true)](https://ci.appveyor.com/project/NHDaly/printfiletree-jl)Exports a single utility function, `printfiletree(path)`.
## Compatability
Julia `v0.6`, `v0.7`, `v1.0`, `v1.1`+## printfiletree(path)
Prints a file tree rooted at path, in the same way as the Unix utility, [`tree`](https://linux.die.net/man/1/tree).
## Example:
```julia
julia> printfiletree("my/files")
my/files
├── a.txt
├── b.png
├── c
│ ├── a
│ │ ├── a
│ │ │ └── subfile
│ │ └── subfiles
│ ├── cats
│ │ └── are
│ │ └── so
│ │ └── cool
│ └── cool
└── d8 directories, 5 files
```## Installation
julia v0.6: `julia> Pkg.add("PrintFileTree")`
julia v0.7+: `pkg> add "PrintFileTree"`
## Based on
http://mama.indstate.edu/users/ice/tree/