#!/bin/env lyng

import lyng.io.fs

val files = Path("../..").list().toList()
// most long is longest?
val longestNameLength = files.maxOf { it.name.length }

// testdoc
fun test() {
    22
}


val format = "%"+(longestNameLength+1) +"s %d"
for( f in files )
{
    var name = f.name
    if( f.isDirectory() )
        name += "/"
    println( format(name, f.size()) )
}


