Coder Social home page Coder Social logo

rusty_tree's Introduction

rusty_tree

Name

rusty_tree - list contents of directories in a tree-like format like the tree command in *nix system.

Synopsis

./rusty_tree [.] [directory] on *nix. Or rusty_tree.exe [.] [directory] on windows

Description

rusty_tree is a recursive directory listing program that produces depth indented listing of files to the cli.

When no argument is provided, rusty_tree lists the files in the current directory which is taken as the default directory.

When directories arguments are given, rusty_tree lists all the files and/or directories found in the given directory.

Upon completion of listing all files/directories found, rusty_tree returns the total number of files and/or directories for each

of the directories listed as arguments on the cli for rusty_tree program.

Inspiration

I got this idea from the book Beginning Perl by Curtis Poe. Though I had being using Perl long before then.

I had used the book in 2013, when Perl programming language was my go to languge for several of my work. I still use Perl these days though.

So I decided to use @rust-lang to achieve the same thing just for the fun of it.

Another reason for this, was that on my win8.1 cli dos-like interface; (not powershell), I will love to use the tree command.

This would be a bit impossible without installing the likes of Cygwin. so, I decided to write one.

Caveat

  • 1. Unlike the tree command, rusty_tree only works on a sinle directory for now. I hope to make it take several directories and list all files and directories contained therein for each of the list of arguments. (Fixed it now works correctly for list of directories also like tree)
  1. You CANNOT use rusty_tree on directory the user doesn't have permission. It will panic and the program will end abruptly.

rusty_tree's People

Contributors

2teez avatar

Stargazers

 avatar  avatar Tim 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.