Skip to content

Commit 7ee60a5

Browse files
committed
iterating over all_content instead to avoid diplaying hidden files when selecting -1 option
1 parent 01ae017 commit 7ee60a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • implement-shell-tools/ls

implement-shell-tools/ls/ls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
if not args.a:
5353
all_content = list(filter(lambda name: not name.startswith("."), content))
5454

55-
for item in content:
55+
for item in all_content:
5656
if args.one:
5757
print(item)
5858
else:

0 commit comments

Comments
 (0)