diff --git a/examples/ls.lua b/examples/ls.lua index abd847e..2cf9804 100644 --- a/examples/ls.lua +++ b/examples/ls.lua @@ -11,6 +11,12 @@ -- lua ls.lua -a -h src -- lua ls.lua -a -t a.dir b.dir c.dir -- +-- Supported options: +-- -a list hidden files +-- -t sort by time, most recent first +-- -S sort by size, largest first +-- -h print size next to each file in kilobytes (1024) +-- -- Author: Lorenzo Cogotti, The DoubleFourteen Code Forge local osx = require 'osx' @@ -87,7 +93,7 @@ local function listfilenames(filenames, bufs, total) if hflag then write(ksize(buf.size or 0), " ") end - write(filename, '\n') + write(filename, "\n") end end