Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
└── d

8 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/