We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd26027 commit 3c30a09Copy full SHA for 3c30a09
1 file changed
implement-shell-tools/ls/ls.py
@@ -22,7 +22,9 @@
22
23
entries = os.listdir(args.filepath)
24
25
-if not args.show_hidden_files:
+if args.show_hidden_files:
26
+ entries = [".", ".."] + entries
27
+else:
28
entries = [entry for entry in entries if not entry.startswith(".")]
29
30
if args.one_per_line:
0 commit comments