Giter Club home page Giter Club logo

gdtree's Introduction

gdtree

gdtree is a directory tree generator built with Python.

Description

gdtree provides easy directory tree generation. This command-line tool is inspired by the classic UNIX tree utility.

Suppose that a given directory has the folder structure below

top_folder
|-- another_folder
|   |-- link_to_file_2
|--lower_folder
|   |-- secrets.py
|-- file_1.py
|-- file_2.txt
|-- file_3.json
|-- special_script.sh

where

  • link_to_file_2 is a symbolic link
  • special_script.sh has execute privileges (for the current user)

gdtree will produce the following output when called on this directory

A picture of gdtree output

The directory is pretty-printed using unicode box characters, and is colorized based on the file type.

Usage

gdtree can be easily installed using pip

pip install gdtree

To generate a directory tree for the current directory, enter the command

gdtree .

An absolute path can be used in place of the relative path to generate a directory tree for any directory

Options

gdtree comes with options to provide information and customize some features of the tree generation:

  • -h, --help - Prints a help message containing usage details
  • -n, --dncolorize - Disables output colorization
  • -f, --fancy - Prints tree using fancy box characters (uses ╠══ instead of ├──)
  • -r, --reverse - Prints tree in reverse alphabetical order

gdtree's People

Contributors

skunichetty avatar

Stargazers

Emanuele Sabetta avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.