Jump to content




"tree" program for ComputerCraft

utility

4 replies to this topic

#1 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 09 January 2017 - 11:03 PM

Disappointed by the lack of a "tree" program in ComputerCraft?
Fear no more!

Download:
pastebin get R0VTnLg0 tree

Usage:
tree [directory]
If you don't specify a directory it will use the current directory.

Screenshot:
Posted Image
(also supports black-and-white screens)

If you want to have tree available at all times, it is recommended that you append this to your startup script:
shell.setAlias("tree", "/tree")

Edited by CrazedProgrammer, 09 January 2017 - 11:06 PM.


#2 Cross_Sans

  • Members
  • 122 posts
  • LocationFrance

Posted 25 January 2017 - 03:37 PM

Interresting, this could be useful if the program has a filter (to display only a certain list of file via a pattern...).

Edited by Redall, 25 January 2017 - 03:38 PM.


#3 apemanzilla

  • Members
  • 1,421 posts

Posted 25 January 2017 - 03:58 PM

For consistency reasons, you should make it so that it respects the list.show_hidden setting.

#4 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 25 January 2017 - 11:07 PM

 apemanzilla, on 25 January 2017 - 03:58 PM, said:

For consistency reasons, you should make it so that it respects the list.show_hidden setting.
Didn't know that existed.
I'll add it sometime.

 Redall, on 25 January 2017 - 03:37 PM, said:

Interresting, this could be useful if the program has a filter (to display only a certain list of file via a pattern...).
I feel like this isn't the best thing for a "tree" program but more for a "search" program.

#5 Cross_Sans

  • Members
  • 122 posts
  • LocationFrance

Posted 26 January 2017 - 03:48 PM

 CrazedProgrammer, on 25 January 2017 - 11:07 PM, said:

...

Okay. Anyway, useful program.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users