Fixed ls -l in pure io mode.

This commit is contained in:
Florian Nücke 2015-04-22 11:38:09 +02:00
parent 4f70ea4152
commit 57714dad27

View File

@ -77,7 +77,11 @@ for i = 1, #dirs do
end
if options.a or f:sub(1, 1) ~= "." then
if not formatOutput() then
io.write(f .. "\n")
io.write(f)
if options.l then
io.write(" " .. fs.size(fs.concat(path, f)))
end
io.write("\n")
else
io.write(text.padRight(f, m))
if options.l then