mirror of
https://codeberg.org/1414codeforge/lua-osx.git
synced 2024-12-22 00:04:50 +01:00
[examples/ls] Improve comments.
This commit is contained in:
parent
b62adb2316
commit
b30a6e19cb
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user