Skip to content

Commit b47f75e

Browse files
committed
Implement single column output for directory entries
1 parent 5981cd7 commit b47f75e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

implement-shell-tools/ls/my_ls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def format_permissions(mode):
5050
perms = format_permissions(entry_stat.st_mode)
5151
size = str(entry_stat.st_size).rjust(6)
5252
print(f"{perms} {size} {entry}")
53+
elif force_single_column:
54+
print(entry)
5355
else:
5456
print(entry)
5557

0 commit comments

Comments
 (0)