You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had some issues with the output of the ls command. It seems to misalign files, which makes them hard to read. This started with the upgrade to py3 and v2.0.1 - previous versions of s3cmd didn't seem to have this issue.
The first issue (misaligned columns) appears with older Python and older s3cmd as well.
It is caused by too narrow column size for object size (9 characters) as defined in format_string u"%(timestamp)16s %(size)9s%(coeff)1s %(uri)s"
As big file sizes are quite common these days, format might be extended at the expense of wider rows.
Problem with human-readable-sizes is definitely caused by the change how division is made by Python.
While Python 2 returns integer, Python 3 returns float. Simple wrapping with int() could improve the output and get rid of those ugly floats.
@mouchar was right that the alignment issue was also caused by too narrow columns.
I did change the column sizes and alignments to better fit big files and datasets.
Let's hope that the wider rows will not annoy too many people and that this change will not hurt too many automatic scripts that would be parsing the output.
Hello,
I've had some issues with the output of the
ls
command. It seems to misalign files, which makes them hard to read. This started with the upgrade to py3 and v2.0.1 - previous versions of s3cmd didn't seem to have this issue.oddly, adding the
--human-readable-sizes
parameter only makes things worse. It doesn't look like it's rounding correctly.Thanks!
The text was updated successfully, but these errors were encountered: