Skip to main content
deleted 7 characters in body
Source Link
sergiol
  • 3.4k
  • 1
  • 15
  • 31

Tcl, 118116 bytes

set n 0
proc L f {puts [string repe \t $[expr [incr ::n][filen]-1]][file ta $f];incr ::n;lmap$f];lmap c [glob -n -d $f *] {L $c};incr ::n -1}
L $argv

Try it online!Try it online!

Tcl, 118 bytes

set n 0
proc L f {puts [string repe \t $::n][file ta $f];incr ::n;lmap c [glob -n -d $f *] {L $c};incr ::n -1}
L $argv

Try it online!

Tcl, 116 bytes

proc L f {puts [string repe \t [expr [incr ::n]-1]][file ta $f];lmap c [glob -n -d $f *] {L $c};incr ::n -1}
L $argv

Try it online!

deleted 30 characters in body
Source Link
sergiol
  • 3.4k
  • 1
  • 15
  • 31

Tcl, 137118 bytes

set n 0
proc L f {puts [string repe \t $::n][file ta $f];incr ::n;if [file isd $f] {lmapn;lmap c [glob -n -d $f *] {L $c}};incr ::n -1}
L $argv

Try it online!Try it online!

Tcl, 137 bytes

set n 0
proc L f {puts [string repe \t $::n][file ta $f];incr ::n;if [file isd $f] {lmap c [glob -n -d $f *] {L $c}};incr ::n -1}
L $argv

Try it online!

Tcl, 118 bytes

set n 0
proc L f {puts [string repe \t $::n][file ta $f];incr ::n;lmap c [glob -n -d $f *] {L $c};incr ::n -1}
L $argv

Try it online!

added 192 characters in body
Source Link
sergiol
  • 3.4k
  • 1
  • 15
  • 31

#tcl, 137

Tcl, 137 bytes

set n 0
proc L f {puts [string repe \t $::n][file ta $f];incr ::n;if [file isd $f] {lmap c [glob -n -d $f *] {L $c}};incr ::n -1}
L $argv

testable on http://www.tutorialspoint.com/execute_tcl_online.php?PID=0Bw_CjBb95KQMU25pQzVGUUladmsTry it online!

#tcl, 137

set n 0
proc L f {puts [string repe \t $::n][file ta $f];incr ::n;if [file isd $f] {lmap c [glob -n -d $f *] {L $c}};incr ::n -1}
L $argv

testable on http://www.tutorialspoint.com/execute_tcl_online.php?PID=0Bw_CjBb95KQMU25pQzVGUUladms

Tcl, 137 bytes

set n 0
proc L f {puts [string repe \t $::n][file ta $f];incr ::n;if [file isd $f] {lmap c [glob -n -d $f *] {L $c}};incr ::n -1}
L $argv

Try it online!

Source Link
sergiol
  • 3.4k
  • 1
  • 15
  • 31
Loading